closealert.js 203 B

1234567891011
  1. window.onbeforeunload = function(e) {
  2. var e = e || window.event;
  3. // For IE and Firefox prior to version 4
  4. if (e) {
  5. e.returnValue = "Any string";
  6. }
  7. // For Safari
  8. return "Any string";
  9. };