♥ 判断页面是否加载完成
document.onreadystatechange = function(){
if(document.readyState=="complete")
{
alert('加载完毕');
}
}
♥ 刷新当前页面
history.go(0);
location.reload() ;
location=location;
location.assign(location);
document.execCommand('Refresh');
window.navigate(location);
location.replace(location) ;
document.URL=location.href ;
♥ 返回上一个页面(不刷新)
history.go(-1);
//或者
history.back();
♥ 返回上一个页面(刷新)
//document.referrer 指前一个页面的URL
location.replace(document.referrer);
self.location=document.referrer;