To make a link that works like the "back" button, copy and paste this in your HTML:
<a href="javascript: history.back(-2)">Back</a>
To make a link that works like the "forward" button, copy and paste this in your HTML:
<a href="javascript: history.forward(-2)">Forward</a>
Main?