history

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

history

Post 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.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Use
javascript:history.go(-1)

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