[thelist] JavaScript: the Back Button
Mark Groen
mark at markgroen.com
Mon May 13 11:45:00 CDT 2002
> Argh surely somebody's done something like this before. I want to
> make it so that when a user clicks the Back Button on their browser,
> it sends them back 2 pages rather than 1.
>
> Why? Because they just came from a page that had an invisible script
> that redirected them here. The invisible script sent them here via a
> <body onload=document.forms[0].submit();> Clicking back from Page 3
> takes them to page 2, which then sends them back to Page 3. I want
> the back button to send them back to page 1.
function goBack() {
top.yourfile.history.go(-2)
}
HTH!
More information about the thelist
mailing list