jQuery禁用浏览器的前进后退按钮

  作者:chrispy

<script type="text/javascript" language="javascript">  $(document).ready(function() {    window.history.forward(1);     //OR window.history.forward(-1);  });</script>

<script type="text/javascript" language="javascript">

  $(document).ready(function() {

    window.history.forward(1);

 
   //OR window.history.forward(-1);

  });

</script>


有用  |  无用

猜你喜欢