alexwilks88
(new user)
Tue May 27 2003 09:30 PM
'Back' link

I'd need to add a hyperlink to my site which simply goes 'back', instead of specifying an excact location for the link to direct to. How would I do this?



putasolutions
(regular)
Tue May 27 2003 10:17 PM
Re: 'Back' link

You'll need to use this javascript rather than html, though you may notice a similarity

<a href = "javascript:history.back()"> back </a>
Of all the things I've lost, I miss my mind the most


Joe_London
(HijackThis Helper)
Wed May 28 2003 12:43 AM
Re: 'Back' link

The link appears to work only within a single page e,g, Back To Top etc. Is there a similar javascript to take you back a page.

Thanks
Joe.
All questions are simple when you know the answers.


putasolutions
(regular)
Wed May 28 2003 05:52 AM
Re: 'Back' link

Try this then:

<a href="javascript:history.go(-1)">back</a>


Of all the things I've lost, I miss my mind the most


Joe_London
(HijackThis Helper)
Wed May 28 2003 07:56 AM
Re: 'Back' link

Thanks Putasolutions,

That works a treat and ideal for a little project I am doing. I'm sure it will resolve Alex's question as well.

Joe.
All questions are simple when you know the answers.


putasolutions
(regular)
Wed May 28 2003 08:11 AM
Re: 'Back' link

You're welcome, Joe
Of all the things I've lost, I miss my mind the most


alexwilks88
(new user)
Wed May 28 2003 09:33 AM
Re: 'Back' link

Thankyou everybody for your help!


Contact Us | Privacy statement Main website
Hitwise Top 10 Award Winner - Jan-Mar 2005

About us | Contact us | Link to us | Terms & Conditions | Privacy Policy
© Copyright IPC Media Limited, All rights reserved