Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape Equivalent of readyState

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi

I am writing a condition :

if(document.readyState == "complete")
{
Code
}

This works fine in IE, but gives error in Netscaspe 4.7. Does anyone know how to check in Netscape whether document has been loaded or not.
 
what about having
<script>
var docloaded = false;
</script>
in your <head> and setting it to true in the onLoad event ?
 
Thank you for your reply. But the problem is that the window is divided into frames and I don't know the code for capturing frame's onload event
 
in the <BODY> tag of your frame source put
onLoad='myfunction();'
or to follow abive example you could have

<head>
<script>
var docloaded = false;
</script>
</head>
<body onLoad='docloaded=true;'>

hope that helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top