<script language="javascript"> //防止页面后退 history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () { history.pushState(null, null, document.URL); }); </script>
博客列表 >禁用浏览器后退 js
<script language="javascript"> //防止页面后退 history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () { history.pushState(null, null, document.URL); }); </script>