Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to run a function when the window is closing javascript

window.onbeforeunload = closingCode;
function closingCode(){
   // do something...
   return null;
}
 
PREVIOUS NEXT
Tagged: #run #function #window #closing #javascript
ADD COMMENT
Topic
Name
5+3 =