PDA

View Full Version : back two times at once


joonstar
04-18-2003, 09:56 PM
<a href='javascript:history.back()'> back</a>

Above code make the page backward.

I like to make it back 2 page.
So, I made next code that doesn't work.

<a href='javascript:history.back(-2)'> back2</a>

Would you make it work?

Catman
04-18-2003, 10:05 PM
Try this:

<a href='javascript:history.go(-2)'> back2</a>

zoobie
04-18-2003, 10:05 PM
Try:
<a href='javascript:history.go(-2)'> back2</a>

redhead
04-18-2003, 10:42 PM
or history.back(2) which is what history.back is for, going backwards ;)