刷新頁面的幾種方法總結:
<input type=button value=刷新 οnclick="history.go(0)">
<input type=button value=刷新 οnclick="location.reload()">
<input type=button value=刷新 οnclick="location=location">
<input type=button value=刷新 οnclick="location.assign(location)">
<input type=button value=刷新 οnclick="document.execCommand('Refresh')">
<input type=button value=刷新 οnclick="window.navigate(location)">
<input type=button value=刷新 οnclick="location.replace(location)">
刷新整個頁面
//如果在frameset內部時,讓整個頁面跳轉到登陸頁面
if (top.location != self.location)
{
top.location = self.location;
}