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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[javascript:window.history.back()]

Status
Not open for further replies.

MaryChan

Programmer
Jan 4, 2001
9
SG
hi,

I'm using the following code to direct the user back to the previous page. [javascript:window.history.back()]

Now I'm using the other one to direct the user to the next page [javascript:window.history.forward()].

But the .forward doesn't seem to work.

Can anyone pls enlighten me on this.


Thks in advance.
 
try this...

[javascript:window.history(+1)]
and for the back button
[javascript:window.history(-1)]

not sure bout the forward, but the back should work. havent messed around w/ the browser's history in quite a while. :)

hope this helps

- Rusty
 
thks...

tried the back button. it works.

I happen to chance upon an article that says that the
forward() actually loads the next URL in the history.

So does that mean that as long as I've not seen the page, i.e. the page is not in the history list, I can't access it.

Is there any way to go abt doing it such that it'll call the immediate page ...


.Mary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top