Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

window on close event javascript?

// JavaScript event for when the user closes the window.
window.onbeforeunload = () => {
  return "Do you really want to close?";
};
 
PREVIOUS NEXT
Tagged: #window #close #event
ADD COMMENT
Topic
Name
3+1 =