back to previous page hyperlink

G

Guest

Hello, in a travel site, I would like to take Miami.htm out of a certain
folder, but don't want to repeat the page in all trip folders just because I
need to change Back to #1 cruise, #2 cruise, etc. I have created a "back to
previous page" link but can't remember the code. Does anyone know that code?
Instead of back button recreating my miami page for 20 cruises, I would like
to use one page for each city and let them be used on more than 20 cruises.
Saving file space and time. So instead of my back button saying Back to
Previous Page and naming them: cruise1.htm and cruise2.htm -- I would like
to say Back to Previous Page and use the generic code for back to whatever
page the person was on before clicking Miami.htm -- so I can use Miami page
once instead of renaming back link 20 times and having to save it in 20
cruise folders.
 
A

Andrew Murray

<a href="#" onclick="history.go(-1);">Previous Page</a>

returns to immediate previous page. increase the number value, e.g. -2, -3 to
jump that many pages back (I believe that works anyway).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top