How do I catch if the user clicked the back
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kon_Drondin
Posted On:   Friday, March 1, 2002 10:39 AM


When a user goes back in history, I want to refresh that page. IE 6 won't let me see if there is a next page in history when I'm checking from the page I want to refresh, so I'd like catch
an event when the user goes back in history (click back, or ALT+cursor, etc). 'onunload' is too general for me, I just need to respond to clicking back, not clicking on a link, or closing
the browser. I'd like to find a way to do it in IE5.5 and Netscape 6.

Re: How do I catch if the user clicked the back

Posted By:   Firat_Tiryaki  
Posted On:   Friday, March 1, 2002 11:57 PM

The history object has a length property


Use history.length...
About | Sitemap | Contact