Back Button

I have a road map on a Web page that can be accessed from many other Web pages.  I presently have a note under the map asking the user to use his browser's back button to return.  I would like to have the  HTML and JAVA code necessary to have a button that would send the user back to whatever page he came from.... just like the browser "back" button does.  This should work in most browsers.

Thnaks and Merry Christmas!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This might help:

<input type="button" value="back" onClick="history.back()">

<INPUT TYPE=button VALUE="Go Back" NAME="cmdBack">

<INPUT TYPE=button VALUE="Go Forward" NAME="cmdForward">

Sub cmdBack_onclick()
End Sub

Sub cmdForward_onclick()
End Sub

Sorry, only know code for VBScript, won't work for Netscape.
boycey is right, you could also use history.go(-1);

oh and Fei, this is not what beachnet asked for is it..but ok, it's almost the same...

Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

beachnetAuthor Commented:
The <form> solution seems to work quite well in both Netscape and IE.  However when running the <form> command through a validator the following warning occurs:

The tag "form" has no attributes. You should probably use
attributes with this tag.

Do you know what attributes this is referring to?

Another question . . . Is there any way to use a gif image for this button and still get the same results?


u can try this to do the gif back:

<a href="javascript:history.back()"><src="aaa.gif"></a>
There are many ways of doing it

 in the event onclick of that particular button -

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
beachnetAuthor Commented:
Thank you for your excellent help
I dont know. I give the true answer and someone else gets points.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.