history.go(-1) problem ...

A

Andrew at work

hi , i've problem with this method :
history.go(-1)
my scenario :
i ' ve page "new.asp" with a form tha submit data ,
if error occured page redirect to message page that show the error
message and here i've a link with onclick = history.go(-1)

If the page is call from a page "menu.asp" with window.open , when
i click on message page to go back to new.asp page all controls in form
are cleared ,
instead if i call new.asp from a list.asp page with href=new.asp there is no
problem and if i perform history.go(-1) , all works great and controls
remember
the values .

Why ? Anybody can help me ?
If it's can help i see that in first case the document.referrer value is =
'' and in
other case is = 'list.asp'

thx a lot in advance
andrew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top