dcsimg
Using history object
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ajay_Tejwani
Posted On:   Thursday, October 11, 2001 07:51 AM


I am using 6 frames in my HTML page and on click of next button, it goes to another page that has PREVIOUS button.



On the click of previous button, I use the function top.history.back(). It goes to the previous page correctly. But, again if come to this page and click PREVIOUS buton, then, it goes to page before the previous page i.e. equivalent to history.go(-2).



How can I overcome this problemso that it goes to the correct previous page al the times.


Thanks, Ajay

Re: Using history object

Posted By:   Nitesh_Naveen  
Posted On:   Thursday, October 11, 2001 08:55 AM

In such cases u should not use history.back(). It'll just take u to the previous page u have browsed in the browser... u should relocate the page to the required page using top.location="yourpage"
About | Sitemap | Contact