1、禁止网页后退(返回上一页)操作
<script language="javascript">
// 消除 后退的所有动作。包括 键盘、鼠标手势等产生的后退动作
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
</script>