禁用IE中的后退按钮 [英] Disable back button in IE
本文介绍了禁用IE中的后退按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在IE中禁用后退按钮.
以下代码不起作用
Hi,
I need to disable back button in IE.
The below code is not working
javascript:window.history.forward(1);
请帮忙
Guhananth.S
Please help
Guhananth.S
推荐答案
^ ]是需要它的人.
顺便说一句,您是否意识到ALT +左,ALT +右和BackSpace仍然可以工作?
Here[^] is someone else who wanted it.
Incidentally, You realise that ALT+Left, ALT+Right and BackSpace will still work?
看看这个:
注销后浏览器后退按钮问题 [
Have a look at this:
Browser back button issue after logout[^]
<script type="text/javascript" language="javascript">
window.history.forward(1);
document.attachEvent("onkeydown", my_onkeydown_handler);
function my_onkeydown_handler()
{
switch (event.keyCode)
{
case 116 : // F5;
event.returnValue = false;
event.keyCode = 0;
window.status = "We have disabled F5";
break;
}
}
</script>
使用它会起作用.
use it it will work.
这篇关于禁用IE中的后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文