用javascript如何禁止用户点击“后退” 加一句<script>window.history.forward()</script> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个方法不适用于使用了location.href=""; 语句之后的页面,如果后退该页面已经失效楼上的也是因为要解决这个问题才要屏蔽后退按钮吗?我也没有找到好的解决办法,帮你顶 还是不好用呀,代码应该放到什么位置呀。为什么我用了总也不好用呢???a.htm代码如下:<Html><head><script>window.history.forward()</script></head><body><a href="b.html">bb</a></html>b.html 如下:<Html><head><script>window.history.forward()</script></head><body><script>window.history.forward()</script></html>可是我从a页面进入b页面后,照样能在b页面点“后退”呀 剛試過…沒問題a.html<script> window.history.forward();</script><a href="b.html">b</a>b.html<script> window.history.forward();</script><a href="a.html">a</a> 求一JS中变量的写法 JS或者JQ小功能实现 JSp Json+js table追加问题 急急急急急!!!!!!!!!!!! javascript中有没有string和stringbuilder的区分? 如何打开一个新的窗口,但是地址栏中的地址还是保持旧的地址啊!!! 界面设计方面的东西求教. 嵌入式框架自动变大小的问题? 如果有两个submit,如何用javascript检测单击了那个submit? 推荐几本JAVASCRIPT的书吧,要全的。 高手救场,树型函数! 给客户做的网站,有一点在客户的机器上不行,请大家帮忙分析一下
a.htm代码如下:<Html>
<head>
<script>
window.history.forward()
</script>
</head>
<body>
<a href="b.html">bb</a></html>b.html 如下:
<Html>
<head>
<script>
window.history.forward()
</script>
</head>
<body>
<script>
window.history.forward()
</script></html>可是我从a页面进入b页面后,照样能在b页面点“后退”呀
a.html
<script>
window.history.forward();
</script>
<a href="b.html">b</a>
b.html
<script>
window.history.forward();
</script>
<a href="a.html">a</a>