iframe.readtState() not working for me

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Amzul
    New Member
    • Oct 2007
    • 130

    iframe.readtState() not working for me

    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">&nbsp ;</div>[/HTML]
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    A recent thread had a similar question. See if it helps.

    Comment

    • Rsmastermind
      New Member
      • Sep 2008
      • 93

      #3
      At first just tell us that when you are calling this function or on which event.

      Comment

      Working...