Log In · Register

 
 
Closed TopicStart new topic
Quick JavaScript question
ChasingLife87
post Jun 29 2005, 10:49 PM
Post #1


ich heisse Meli.
*****

Group: Member
Posts: 909
Joined: Apr 2005
Member No: 122,016



I know there is a simple javascript link code or something, where you can have, basically, a back button.

Like on a page, you can have a link that says "back", but you don't have to type in the url for each page, it's just a javascript code that works the same way as a browser back button.

Talk much, Meli? You sound like a n00b.

But I know this exists because I've seen it on other sites, I just can't seem to find it now pinch.gif
 
freeflow
post Jun 30 2005, 02:58 AM
Post #2


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



try this
CODE
<a href="javascript: history.back(-2)">Back</a>

i got it from here:http://pixelfx.org/v2.php
(tutorials>>javascript)
 
*mipadi*
post Jun 30 2005, 07:20 AM
Post #3





Guest






If you want it to actually be a button, you can modify it like this:
CODE
<input type="button" value="Back" onClick="history.back(-2)" />
.
I imagine that might work.
 
ChasingLife87
post Jul 1 2005, 01:02 PM
Post #4


ich heisse Meli.
*****

Group: Member
Posts: 909
Joined: Apr 2005
Member No: 122,016



QUOTE(SHAWTY_TOYA @ Jun 30 2005, 2:58 AM)
try this
CODE
<a href="javascript: history.back(-2)">Back</a>

i got it from here:http://pixelfx.org/v2.php
(tutorials>>javascript)
*


Gracias, chica, that's exactly what I was looking for! hug.gif
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: