hello all,
i am trying to determine if my iframe content loaded or not,
can someone tell me what is wornge with this script :
[CODE=javascript]function iframe(){
y = document.getEle mentById('ifram e_test');
if (y.readyState == "complete")
document.getEle mentById('show' ).style.display ="none";
}[/CODE]
[HTML]<iframe align="middle" height="400px" width="500px" src="http://www.google.com" id="iframe_test " name="test" onload="iframe( )"></iframe>
<div id="show" style="border:# FF0000;backgrou nd-color:#990000;h eight:500px;wid th:500px">  ;</div>[/HTML]
i am trying to determine if my iframe content loaded or not,
can someone tell me what is wornge with this script :
[CODE=javascript]function iframe(){
y = document.getEle mentById('ifram e_test');
if (y.readyState == "complete")
document.getEle mentById('show' ).style.display ="none";
}[/CODE]
[HTML]<iframe align="middle" height="400px" width="500px" src="http://www.google.com" id="iframe_test " name="test" onload="iframe( )"></iframe>
<div id="show" style="border:# FF0000;backgrou nd-color:#990000;h eight:500px;wid th:500px">  ;</div>[/HTML]
Comment