dcsimg
Accessing history
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dave_Perkins
Posted On:   Tuesday, November 27, 2001 05:50 AM

I have a web site with pages that contain links to themselves. I would like to do something different every other time the user hits the link (i.e. there are 2 states that the page can be in).



I have tried to access history but I've been getting access privilege errors in Netscape 6 and IE gives me something about a null object.



Minimally, I would like to know if the current page being displayed in a browser is the same as the previous page in history.



Preferably I'd like to know the number of consecutive entries in history that the current page has.

Re: Accessing history

Posted By:   Firat_Tiryaki  
Posted On:   Wednesday, November 28, 2001 12:33 AM

length of entries in history: history.length;


the previous page: document.referrer

About | Sitemap | Contact