"Jacqui or (maybe) Pete" <po****@spamcop.net> wrote in message
news:MP************************@news.CIS.DFN.DE...
In article <3f***********************@news.xs4all.nl>, "Peter Bremer"
<-> says...
"rf" <ma**********@the.time> wrote in message
news:z2***************@news-server.bigpond.net.au...
"Peter Bremer" <-> wrote in message
news:3f***********************@news.xs4all.nl... ... <p>Press your browsers "back" button to return to where you came
from</p> ... Okay, let me rephrase: Can anybody help me, and tell me how to emulate
'history.back()' USING JAVASCRIPT CODE, without using the history
object?
I suppose you'll want to duplicate the maximize, minimise, print,
forward, etc functions of the browser too? Why?
Anyway - a javascript 'solution' is given here:
http://www.foad.org/~abigail/HTML/Misc/back_button.html
I'm sorry Jacqui or (maybe) Pete, I don't know if you have read the message,
but I discovered that the HISTORY object seems not supported by Gecko in
strict mode. And that is exactly the object that is used in the 'solution'
you point me to.
You are right to argue the use of a history.back() function in JavaScript.
What I want to do, is create a sort of 'wizard' application, such as you
commonly see in Windows when going through complex tasks. These
applications often have a 'next' button, going to the next step, and a
'previous' button going to the previous step.
Of course I could create all kinds of complex scripts for the 'previous'
button, retrieving previously entered information from cookies, session
variables or database fields, but a simple 'history.back()' JavaScript
function also does the trick. That is, on every JavaScript-enabled browser
except for Gecko in strict mode...
Now, before resorting to writing complex code for that one set of browsers,
I was trying to find out if there was another simple way to go 'back in
history'...