View Full Version : document loading detection in netscape.
Chris_Jackson
07-29-2002, 06:53 PM
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.
document.isLoaded = false;
document.addEventListener('load', function() { document.isLoaded = true }, false);
document.isLoaded is now true only after the onload event fires.
Chris_Jackson
07-29-2002, 09:09 PM
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.
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>
Chris_Jackson
07-30-2002, 12:37 AM
Thank you.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.