Advertisement
Virajsinh

Page Reload Show Form Resubmit Message Disable

Nov 17th, 2021 (edited)
1,898
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.22 KB | None | 0 0
  1. $(function() {
  2.     if ( window.history.replaceState ) {
  3.         window.history.replaceState( null, null, window.location.href );
  4.     }
  5. });
  6.  
  7. $(window).off('beforeunload');
  8.  
  9. window.onbeforeunload = null;
  10. event.preventDefault();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement