Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript alert on refresh

window.onbeforeunload = function() {
  return "Data will be lost if you leave the page, are you sure?";
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #alert #refresh
ADD COMMENT
Topic
Name
2+8 =