How to get the complete state when the document (web page) is fully loaded in JavaScript

1 Answer

0 votes
document.onreadystatechange = function () 
{
  if (document.readyState == "complete") 
    document.write("Document (web page) is fully loaded <br />");
}
    


/*
run:

Document (web page) is fully loaded 

*/

 



answered Jun 11, 2016 by avibootz
...