Click to See Complete Forum and Search --> : Back button??!!


cezza30
02-25-2003, 01:24 PM
I have two windows (the second one having been opened by the first) and I want to have a button in the first window that will act on the second window, taking it back to the previous page viewed. Is it possible to do this??

Thanks for any help . . . .

khalidali63
02-25-2003, 01:35 PM
yes.in the onclick event of the button put this code

window.history(-1)

this should take the user to the last page visited.

Cheers

Khalid

cezza30
02-25-2003, 01:42 PM
Thanks for replying . . . .

But what you've suggested would take me to the previous page in the window with the button. What I want to do is click the button in window 1, and it take window 2 back a page.

I've been fiddling around with it but I can't get it to work.

cezza30
02-25-2003, 02:11 PM
Can you do this is some way . . . .

windowName.history.go(-1)


I can't get this to work but maybe it's slightly wrong

Argh grrrrrr