DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+3 =
Submit