JavaScript DHTML/Event onMethod/onReadyStateChange
"onReadyStateChange" Example
<source lang="html4strict">
<html> <head> <script language="JavaScript">
document.onreadystatechange=function1; function function1 () { if (document.readyState=="complete") { alert("The document ready state is "complete"") }
} </script> </head> <body>
Body content
</body> </html>
</source>