Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question document loading detection in netscape.

    Hi,

    I curious if there's a way to tell when a document is completely loaded in Netscape (>6.0). For IE, I use the document.ReadyState property. Is there an equivalent for Netscape?

    Thank you,

    Chris.

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    document.isLoaded = false;
    document.addEventListener('load', function() { document.isLoaded = true }, false);

    document.isLoaded is now true only after the onload event fires.

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you very much.

    Where does the code you provided belong? I have all my other stuff in a file seperate form the html file.

    Chris.

  • #4
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    It can go anywhere, as long as it is enclosed by <script> tags.

    Preferably (so IE doesn't see it):

    <script type="text/javascript" language="Javascript1.5">
    //the code
    </script>

  • #5
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •