<div class="codetitle"> <span><a style="CURSOR: pointer" data="18140" class="copybut" id="copybut18140" onclick="doCopy('code18140')"><u>Copy code</u></a></span> The code is as follows:</div> <div class="codebody" id="code18140"> <br><script type="text/javascript" language="JavaScript" & gt; <br> <br> //: Determine whether the webpage is loaded and complete <br> Document.onReadyStateChange = Function () {<br> if (documereadyState == "Complete") {<br> ALERT ('OK' );<br> </div>