Disable the browser by js fallback event

js code:

<script>
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
    history.pushState(null, null, document.URL);
});
</script>

 

Guess you like

Origin www.cnblogs.com/YeHuan/p/11221927.html