Instructions: Place the Form tag where you want the buttons to appear on your
webpage. The script can go anywhere in your HTML document.
Tested On: Mozilla 1.3, Opera 7
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide this from older browsers
// This script was written by Protoplasm
// http://geocities.datacellar.net/protoplasm72
function goForward() {
window.history.forward();
}
function goBack() {
window.history.back();
}
// end hide -->
</SCRIPT>
<FORM TARGET="_self">
<INPUT TYPE="submit" VALUE="Back" onClick="goBack()">
<INPUT TYPE="submit" VALUE="Forward" onClick="goForward()">
</FORM>