asp.net实现页面跳转后不可以返回

window.history.go(0);

Response.Write("<script> window.history.go(0);alert('恭喜user注册成功!!!\r\n正在跳转到登录界面......');window.location.href='登录.aspx'; </script> ");

这样当点击返回时,会弹出页面跳转的警告窗口。

如果不可以,可以将其中的0改为-1.-2,-3..试试

原文地址:https://www.cnblogs.com/feiquan/p/10816532.html