<script>
$(function () {
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
alert('禁止頁面返回');return false;
});
})
</script>