且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用javascript禁用后退按钮mozilla和IE浏览器

更新时间:2023-12-03 08:28:16

尝试使用下面的代码。



Try to use below code.

<script type="text/javascript" language="javascript">
    function noBack() 
    { 
         window.history.forward(); 
    }
</script>



阅读本文(禁用后退按钮)以获取更多信息。





谢谢

Naveen


Go through this article (disable back button) for more information.


Thanks
Naveen