history.pushState(null, null, document.title);window.addEventListener('popstate', function () { history.pushState(null, null, document.title);});该脚本将覆盖尝试以当前页面的状态来回导航。
更新:
一些用户报告说,使用document.URL而不是可以取得更好的成功document.title:
history.pushState(null, null, document.URL);window.addEventListener('popstate', function () { history.pushState(null, null, document.URL);});

![如何使用JavaScript在浏览器中禁用后退按钮[重复] 如何使用JavaScript在浏览器中禁用后退按钮[重复]](http://www.mshxw.com/aiimages/31/442291.png)
