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!
beachnetAsked:
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.

boycey19Commented:
This might help:

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

Boycey
0
FeiCommented:
<INPUT TYPE=button VALUE="Go Back" NAME="cmdBack">

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

<script LANGUAGE="VBSCRIPT">
<!--
Sub cmdBack_onclick()
history.back
End Sub

Sub cmdForward_onclick()
history.forward
End Sub
-->
</script>

Sorry, only know code for VBScript, won't work for Netscape.
0
oubelkasCommented:
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...

Joseph
0
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?

Thanks.

0
freshmeatCommented:
u can try this to do the gif back:

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

 in the event onclick of that particular button -
             1)javascript:history.back()
             2)javascript:history.go(-1)
0

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
0
boycey19Commented:
I dont know. I give the true answer and someone else gets points.

Boycey
0
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
HTML

From novice to tech pro — start learning today.