Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

notice before reload js

<script>
  // Warning before leaving the page (back button, or outgoinglink)
window.onbeforeunload = function() {   
  return "Do you really want to leave our brilliant application?";   
  //if we return nothing here (just calling return;) then there will be no pop-up question at all   
  //return;
};
</script>
Source by code-maven.com #
 
PREVIOUS NEXT
Tagged: #notice #reload #js
ADD COMMENT
Topic
Name
4+7 =