Back button code

  • Thread starter Thread starter Lauren
  • Start date Start date
L

Lauren

Is there a type of code that I can imput into the back
button, so that it knows what the last visited page was?
I'm using the page include option for my top nav bar, and
would like the back button to accomodate all pages.

Thanks,

Lauren
 
-----Original Message-----
Is there a type of code that I can imput into the back
button, so that it knows what the last visited page was?
I'm using the page include option for my top nav bar, and
would like the back button to accomodate all pages.

Thanks,

Lauren

I'm not sure what kind of button you're using, but here's
a link that does the same thing as clicking the browser's
Back button:

<a href="javascript: history.back();">Back</a>

Two things to consider, of course, are:

1. Why do I want to give up screen space for something
that the browser's menu bar provides anyway?

2. Clicking the browser's Back button might cause the
visitor to leave my site. Why would I want to provide
such a link?

Jim Buyens
Microsoft FrontPage MVP
(e-mail address removed)
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*
 
Back
Top