Did IE8 lose the document.frames collection?
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
精彩评论