Cross-browser Access html content of object tag
问题 I have object tag with a data attribute to a html file from same domain. I want to access the content of the html. HTML: <object id="object" width="420" height="360" data="jsp/index.html"></object> JS: var object = document.getElementById("object").contentDocument; var html = object.getElementById("tmpl").innerHTML The above code is working in all browsers except IE7 Please help me in accessing the DOM content of object tag in IE7 回答1: Ok so i tried to play around the code a little as