Useful commands
Thursday, January 19, 2012
Close browser event
JavaScript: window.onbeforeunload Event - Show “Are you sure you want to leave this page?” Message
$(window).bind('beforeunload', function() {
return 'You have unsaved changes. If you leave the page these changes will be lost.';
});
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment