window.frames在不同浏览器中的用法

document.frames 等同于 window.frames,用来取得当前页面内 window 对象的集合。

不支持Firefox,其他浏览器(chrome、opera、IE、360)均支持。

frames<iframe name=""> 的name属性值

解决方法:

使用window.frames[‘framename‘] 代替 document.framename

注意:window.frames[‘framename’]不可写成 window.frames(‘framename’)

作者:itmyhome

你可能感兴趣的:(window,chrome,firefox,frames)