Knowledgebase: Form Code & Javascript
Javascript function for 'Back' button going back 2 pages
Posted by Matt Marler on 12 March 2010 10:10 AM
This button is very useful if you are using the .asp extension for your Cart32 template files. Since the Back button on the browser does not work when template pages are customized using asp, this button can be put at the bottom of the desired pages and allow the visitor to the site to go to the previous page.


<form name=buttonback2>
<input type=button value=Back OnClick=history.go(-2)>
</form>


The -2 can be any value and used on other pages as well.
Using -1 will take the user back 1 page.


Here is the link method for the same thing:


Click ME
(17 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: