Jump to content

back button


eti-enne02

Recommended Posts

Hey hey, this is real simple, but this must be done with js to be done easly...

<a href="java script:history.back(-1);" title="Back">Back</a>

There u go :)-Kristian_C---Edit :It seems like this form spaces up java script, so it's not supposed to have a space between java script

Link to comment
Share on other sites

well the problem is i want to put it in a button that the text written is decline, i got an accept button next to it, here's the code

<input type=button value="accept" onclick="java script:window.location.href='http://www.wow-awesome.ucoz.com';"/><input type=button value="decline" onclick="java script:window.location.href='java script.back(-1);title="back"/>

what am i doing wrong with the decline button?

Link to comment
Share on other sites

With your decline button, it should be just like this:

<input type="button" value="decline" onclick="history.back(-1)" />

The java script: protocol only needs to be used in hyperlinks.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...