So I thought this script was pretty straight forward:
<a id="BackButtonlnk" href="#" class="white" onClick="history.go(-1)"></a>
When I click it it briefly shows the previous page but just looks like it refreshes and you never end up at the previous page.