Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Prompt box when refreshing or closing the browser
- window.onbeforeunload = function() {
- if(modular.helpers.unsaved_changes)
- return "Not so fast cowboy, you've unsaved changes on this page. Do you really wish to leave this page?";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement