判断页面是不是加载完成

判断页面是否加载完成scriptvar startwindow.onload function (){if(document.all){start setInter

判断页面是否加载完成

<script>var start;window.onload = function (){if(document.all){start = setInterval('updateImg()', 1000);}else{alert("FF完成");}}function updateImg(){if (document.readyState == "complete"){try{alert("IE完成");clearInterval(start);}catch(err){return true;}}}</script>