Sorry another problem Taran?

  murgle 19:21 02 Mar 04
Locked

On my Website click here I have the menu to select different models of vehicle. If you select Honda CRV you will notice I have added a back to previous page button at the top and botton of the page.

If you select the previous page button, it goes back to the model selection page but it is not possible to select a different model without selecting a different make first.

Is there a page refresh script I could add?

Many thanks,

  Taran 20:07 02 Mar 04

Not having looked closely at your site code this is off the top of my head and may not do what you want it to.

Try adding this into the Back button code:

onClick="history.go(-1)">

A normal form button would look something like this:

<INPUT TYPE="button" VALUE="Back" onClick="history.go(-1)">

The -1 bit tells the button how many pages to go back to.

Another possible solution could be to add in a location.replace JavaScript command.

location.replace('page_url_to_load');

Instead of using a history 'back' effect this says that when the button is clicked it will load up the specified page.

you can use it in a number of ways.

Text hyperlinks would look like this:

A HREF="javascript:location.replace('page_name.html')">Link text </A>

Food for thoguht ?

This thread is now locked and can not be replied to.

Amazon Fire HD 8 review: A brilliant combination of function and value – with one massive caveat

1995-2015: How technology has changed the world in 20 years

How to create an introvert-friendly workplace

Apple Watch 2 review | Apple Watch Series 2 review: New Apple Watch is faster, brighter, water-resit…