屏蔽页面回退操作
<script language="javascript">
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
</script>
屏蔽页面回退操作
<script language="javascript">
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
</script>
本文标题:屏蔽页面回退操作JS
本文链接:https://www.haomeiwen.com/subject/srtowqtx.html
网友评论