eti-enne02 Posted August 22, 2007 Share Posted August 22, 2007 i,de like to create a back button, can anyone show me the code or a link to a tutorial please? Link to comment Share on other sites More sharing options...
Kristian_C Posted August 22, 2007 Share Posted August 22, 2007 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 More sharing options...
Synook Posted August 22, 2007 Share Posted August 22, 2007 Indeed it does! "javascript" should be one word. Link to comment Share on other sites More sharing options...
eti-enne02 Posted August 22, 2007 Author Share Posted August 22, 2007 thx buddy Link to comment Share on other sites More sharing options...
eti-enne02 Posted August 22, 2007 Author Share Posted August 22, 2007 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 More sharing options...
aspnetguy Posted August 22, 2007 Share Posted August 22, 2007 Indeed it does! "javascript" should be one word.the forum sometimes adds the space in javascript and other "keywords". Link to comment Share on other sites More sharing options...
eti-enne02 Posted August 22, 2007 Author Share Posted August 22, 2007 ok i just noticed, thx! Link to comment Share on other sites More sharing options...
Synook Posted August 22, 2007 Share Posted August 22, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.