Page 1 of 1

history

Posted: Sun Aug 03, 2003 10:58 pm
by m3rajk
i'm trying to find the way to send someone back a page if they click a link... all i can find is window.history() but i dunno how to call it from there. i thout there was a functions that would send someone back one page. this is incase the php browser redirection doesn't work, the displayed page is just a line with this link to go back.

Posted: Wed Aug 06, 2003 5:25 pm
by patrikG
Use
javascript:history.go(-1)

but if you're using sessions, the user would have to refresh the page.