1.关闭窗口不提示信息
function CloseWin() //这个不会提示是否关闭浏览器
{ window.opener=null;
//window.opener=top;
window.open("","_self");
window.close();
}
function open_complex_self() {
var obj_window = window.open('close.html', '_self');
obj_window.opener = window;
obj_window.focus();
}
2. 禁用后退键网页
window.history.forward(1);
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache); // 后台