Faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 19 people (11%) answered Yes
Recently 2 of 10 people (20%) answered Yes

Entry

How to force user to run a javascripts function when user trying to close the web page?

Jun 20th, 2001 05:47
Jean-Bernard Valentaten, Long Khong,


I'm afraid you can't force any user to run a js function *g*
But you can use the onunload-handler in the body-tag, that fires when 
the user tries to open a new webpage.
HTH