Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. window.onbeforeunload = dialogBox;
  2.  
  3. function dialogBox()
  4. {
  5. $("#dialog").html("");
  6. $("#dialog").append("There appears to be some unsaved changes");
  7. $( function() {
  8. $( "#dialog" ).dialog({
  9. modal: true,
  10. buttons: {
  11. Cancel: function() {
  12. $(this).dialog( "close" );
  13.  
  14. },
  15.  
  16. "Save": function() {
  17.  
  18. },
  19. },
  20. })
  21. });
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement