Search this site!

Return to the CSB Support home page
Buttons to go BACK, FORWARD, RELOAD
Description:
Here's another way of doing the 'Link to previous page' using an HTML form button.  This trick was found at:


How to use:
1. Copy and paste the following code into a 'Build your own web gem' (BYOWG):

<form>
<input type="button" value="Back" onclick="history.back()">
<input type="button" value="Forward" onclick="history.forward()">
<input type="button" value="Reload" onclick="location.reload()">
</form>


2.  If you only want to 'Back' button, then delete the other two 'input type' lines.  You can also edit the button "value" to whatever you want it to say

4. Save, publish and enjoy!

Example:
The link below will take you to the last web page you were at before coming to this page!

Download the code
right click on link, then click on 'Save target (or frame) as'
Other information:
For more information on this subject, go to:


Source code:

 <form>
<input type="button" value="Back" onclick="history.back()">
<input type="button" value="Forward" onclick="history.forward()">
<input type="button" value="Reload" onclick="location.reload()">
</form>