Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fire event when exiting page?

Status
Not open for further replies.

crazyspree

Programmer
Sep 9, 2004
15
0
0
SE
Hi

Is there an event firing when u leave a page, for example via link?

I need to set a session variable just as the user clicks to the next page.

I'm going to set a session variable that holds the current URL. Need i for back-button functionality.

(I cannot use the history.back() java function...)
 
If they are leaving the page by clicking a link you could just use the URLReferrer instead.

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
crazyspree,

Can you please post your solution.

Thanks,

DH
 
A sample code snippet would be great!

Thanks again,

DH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top