Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.onbeforeunload = dialogBox;
- function dialogBox()
- {
- $("#dialog").html("");
- $("#dialog").append("There appears to be some unsaved changes");
- $( function() {
- $( "#dialog" ).dialog({
- modal: true,
- buttons: {
- Cancel: function() {
- $(this).dialog( "close" );
- },
- "Save": function() {
- },
- },
- })
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement