JavaScript DHTML/Event onMethod/onReadyStateChange

Материал из Web эксперт
Перейти к: навигация, поиск

"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>