English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

The correct form for the back option is
history.back()
This will go back one page.

There is also
history.forward()
This will go forward one page.

What you want is
history.go(-2)

You should first check that you can go back 2 pages though with
if (history.length > 1)

2007-05-12 04:46:29 · answer #1 · answered by AnalProgrammer 7 · 1 0

no, you are wrong
use this
javascript:history.go(-2)
note 2 points:
1/history.go not history.back
2/minus 2 not 2
See details at the link below

2007-05-12 12:00:44 · answer #2 · answered by ktlqai 2 · 1 0

fedest.com, questions and answers