This doesn\'t work:
if(document.getElementById(\"iframe\").innerHTML==\'\'){
Is there a safe browser reliable way to check an iframe if its
Check the frame's contentDocument property. IE 7 and earlier support the contentWindow property instead, but there is a simple cross browser example at http://www.w3schools.com/jsref/prop_frame_contentdocument.asp.
A less-reliable method but might be what you want... check the src property.
You can read about other frame properties at http://www.w3schools.com/jsref/dom_obj_frame.asp