[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Previous Page Script

Posted on 1999-10-26
8
Medium Priority
?
202 Views
Last Modified: 2010-04-09
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
0
Comment
Question by:ronnieg56
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 33

Expert Comment

by:knightEknight
ID: 2160604
Do you mean this? :

<INPUT type='button' name='cmdBack' value='Back' onClick='history.go(-1);'>
0
 

Author Comment

by:ronnieg56
ID: 2160821
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
 
LVL 3

Expert Comment

by:messentary
ID: 2160882
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 new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
LVL 2

Accepted Solution

by:
potent earned 200 total points
ID: 2161366
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
 

Author Comment

by:ronnieg56
ID: 2161390
I want to thank you for all the replies. Between all of you I have got it working fine. Thanks again!
0
 
LVL 3

Expert Comment

by:messentary
ID: 2161512
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
 
LVL 2

Expert Comment

by:potent
ID: 2161684
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
 
LVL 3

Expert Comment

by:messentary
ID: 2162265
I used a button as that was what was in the question.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Suggested Courses

611 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question