开发者

Did IE8 lose the document.frames collection?

开发者 https://www.devze.com 2022-12-24 02:54 出处:网络
I noticed that an application I am maintaining was giving me a javascript error in IE8 and FF. The script was trying to get a collection of frame elements:

I noticed that an application I am maintaining was giving me a javascript error in IE8 and FF. The script was trying to get a collection of frame elements:

document.frames

This always returned 'undefined'. I placed a watch on the document object and noticed that this collection does not 开发者_Python百科seem to be a member of the document object in IE8. I think this was always the case in FF but this same code works in older versions of IE. Has this been removed?

-Nick


From this discussion:

frames is a property of window and does not have to be addressable via document, but I.E. makes it available.

So IE made it possible before, but not any more

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号