test2 of avoiding back button: warn user

by hrabinowitz

HTML

Hi there

JavaScript

history.pushState(null, null, 'no-back-button');
window.addEventListener('popstate', function(event) {
    alert("this is popstate. you ideally should not go back");
    event.preventDefault();
});