在unload事件中寫
location.history.go(-1)
試一下,應該可以的.....
location.history.go(-1)
試一下,應該可以的.....
解决方案 »
- 如何取到html自定义tag的值,用this.tag不行
- js动态求值有困难重重
- 如何通过坐标触发单击事件 就像鼠标点击效果一样
- 如何访问嵌套在frameset 里面的子frameset对象
- 关于document.form.action的问题
- 用parent.document.getElementById("ID").innerHTML会碰到 拒绝访问
- 这个计时器是怎么判断时间的?
- document.documentElement.scrollTop总为0的问题
- net_lover(孟子E章) 进来呀。郁闷致死!!!
- 隐藏表格中的文本框当鼠标经过时显示可以写内容。。。。。。
- 一个浮动导航条问题
- 怎样在网页上加上网络实名?
window.onbeforeunload = function()
{
if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
{
window.event.returnValue = "";
}
}
</script>