JS 禁用浏览器前进后退

使用jQuery:

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

 

posted @ 2019-06-28 14:36  yangchin9  阅读(830)  评论(0编辑  收藏  举报