Answers for "prevent history back javascript"

0

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."; };
Posted by: Guest on August-25-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language