×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Massimo Zappino
Added: Jul 3, 2012 9:13 AM
Views: 33
Tags: exit confirm
  1. function confirm() {
  2.     return "You have unsaved changes";
  3. }
  4. window.onbeforeunload = confirm;
  5.