代码
<script type="text/javascript" language="JavaScript">
//: 判断网页是否加载完成
document.onreadystatechange = function () {
if(document.readyState=="complete") {
alert('ok');
}
}
</script>