getElementsByTagName is null or undefined, only in IE - and only in one particular spot in the function [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: getElementById.contentDocument error in IE listed below is my javascript code. What it does is searches the whole document for all iframes, then searches the iframes for all images. The parent and child frames are all my code on the same domain. The code works fine in chrome, FF and safari, but not IE. Here is the error I'm getting. Microsoft JScript runtime error: Unable to get value of the property