js禁止浏览器页面后退功能:
<script> ???$(function(){ ???????????if(window.location.href.indexOf("/login") > -1) { ???????????????//防止页面后退 ??????????????????history.pushState(null, null, document.URL); ??????????????????window.addEventListener(‘popstate‘, function () { ???????????????????????history.pushState(null, null, document.URL); ???????????????????}); ???????????} ???});</script>
js禁止浏览器页面后退功能
原文地址:http://www.cnblogs.com/cxzhijia/p/7460256.html