faqts : Computers : Programming : Languages : JavaScript : Event handling

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

13 of 36 people (36%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

When jumping to a link within a page, is there any way a page's "onUnload" function can ascertain the URL of the link that was clicked?

May 21st, 2001 05:14
Colin Fraser, Larry Horner,


No, the unload event does not fire when you jump within a page, it does 
when you use the back and forward buttons if you are going to another 
page but not if you remain within the page.