joepesci Posted August 20, 2006 Share Posted August 20, 2006 Hello What i am trying to do is link the continue shopping icon and other buttons to go back to the last html page they were called from. So i figured out how to make them go back to the html home page, by doing this <a href="http://www.qualityclox.com"> <img border="0" src="http://qualityclox.com/catalog/includes/languages/english/images/buttons/button_continue_shopping.gif" width="166" height="22"></a> But how do i make it remember on which page exactly it was called for example it was called from: http://www.qualityclox.com/clocks.htm or any sub page. thanks Link to comment Share on other sites More sharing options...
PD_Steve Posted August 20, 2006 Share Posted August 20, 2006 Hello What i am trying to do is link the continue shopping icon and other buttons to go back to the last html page they were called from. So i figured out how to make them go back to the html home page, by doing this <a href="http://www.qualityclox.com"> <img border="0" src="http://qualityclox.com/catalog/includes/languages/english/images/buttons/button_continue_shopping.gif" width="166" height="22"></a> But how do i make it remember on which page exactly it was called for example it was called from: http://www.qualityclox.com/clocks.htm or any sub page. thanks Change the code to this <a href="#" onClick="history.go(-1)"> <img border="0" src="http://qualityclox.com/catalog/includes/languages/english/images/buttons/button_continue_shopping.gif" width="166" height="22"></a> Steve (for the record, what this is doing is pretty much the same as hitting the "back" button on your browser) My Toolbox: Crimson Editor, Adobe Photoshop CS2.0, Expression Web, Macromedia Suite 8.0, Cinema 4D, Nvu. Link to comment Share on other sites More sharing options...
joepesci Posted August 21, 2006 Author Share Posted August 21, 2006 Change the code to this <a href="#" onClick="history.go(-1)"> <img border="0" src="http://qualityclox.com/catalog/includes/languages/english/images/buttons/button_continue_shopping.gif" width="166" height="22"></a> Steve (for the record, what this is doing is pretty much the same as hitting the "back" button on your browser) what it does it goes back to this url : http://qualityclox.com/catalog/# that weired Link to comment Share on other sites More sharing options...
joepesci Posted August 21, 2006 Author Share Posted August 21, 2006 Ok i Think i got it. i used <a href="http://#" onClick="history.go(-1)"> IS THIS OK Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.