如何判断当面的网页加载完成?

if(document.readyState=='complete'){ window.alert('加载完成!'); }
原文地址:https://www.cnblogs.com/MaxIE/p/357504.html