Previous Page Script

I am using notepad to handwrite my html. I am looking for the scripts to add "previous page" to my pages and for it to have a button and able to work on MSIE and Netscape. Thank you in advance!

rg
ronnieg56Asked:
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.

knightEknightCommented:
Do you mean this? :

<INPUT type='button' name='cmdBack' value='Back' onClick='history.go(-1);'>
0
ronnieg56Author Commented:
Thanks for the reply. I added it to one page to test. I copied it exactly as you wrote it and I am viewing it with MSIE5. It isn't working. Could the reason be the it won't work with IE5? I remember this script and I am sure it worked with Netscape but I think IE5 handles the history different and maybe this is why it dont work.
0
messentaryCommented:
Try this:

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

<input type="button" value="back"></a> </form>

Because there is an input type, you will need to place it witin a form tag for Netscape.  This should do the trick for you.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

potentCommented:
This will work in any Browser that understands JavaScript 1.0 (which is 95% of them)

<A HREF="Javascript:window.history.back(-1)"><IMG SRC="images/nav/back.gif" WIDTH="70" HEIGHT="20" BORDER="0" ALT="Go back one page"></A>

Just subtistute the img path, width, height, to whatever you are using.


Website Rob
----------------
Helping people create
a Potent Website

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
ronnieg56Author Commented:
I want to thank you for all the replies. Between all of you I have got it working fine. Thanks again!
0
messentaryCommented:
which method did you choose?  I hope you just don't accept any answer, only the answer that helped you the best.

Thanks,

Mess
0
potentCommented:
Thanks ronnie.

And messentary, I can only say that although your answer is vaild, maybe my answer was choosen as it gives options for images. Some Browsers (like IE, Opera and others) create very big, ugly buttons that people would like to know how to get rid of, while still keeping the functionality of the script. As you say, maybe my answer helped best.


Website Rob
----------------
Helping people create
a Potent Website

0
messentaryCommented:
I used a button as that was what was in the question.
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.