PDA

View Full Version : Is a "Back" button possible ?


GTB
08-07-2009, 12:55 AM
I would like to place a button on most of my pages simply titled "Back"

I would like this button to take you back to whatever page you came from on my website.

I assume it's possible.

Does anyone know how I could achieve this ?

Cheers

edbr
08-07-2009, 01:07 AM
with javascript
<input name="button" type="button"
onclick="javascript: history.go(-1)" value="Back " />

GTB
08-07-2009, 01:32 AM
Many Thanks I will give that a go.

GTB
08-07-2009, 01:49 AM
Who the hell am I kidding !

I have no idea what that means.

(I did give it a go, honest.)

Is there a tutorial anywhere that will explain how to do it that a five year old could understand ?

Thankyou for your patience.

edbr
08-07-2009, 02:45 AM
:)no my fault i'd just come in the office and posted that without a lot of thought just posted it from my snippets, that is in a form .hold tight

edbr
08-07-2009, 02:49 AM
this will show back but you can replace that with an image
<a href="#"
onclick="javascript: history.go(-1)" />back</a>
hope thats clearer