Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

prevent history back javascript

// There are numerous reasons why disabling the back button will not really work. Your best bet is to warn the user:
window.onbeforeunload = function() { return "Your work will be lost."; };
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #prevent #history #javascript
ADD COMMENT
Topic
Name
3+5 =