backbutton in js code example
Example 1: href back page javascript
<a href="javascript:history.back()">Go Back</a>
Example 2: html redirecting to previous page
<a href="#" onclick="javascript:window.history.back(-1);return false;">Back</a>
<a href="javascript:history.back()">Go Back</a>
<a href="#" onclick="javascript:window.history.back(-1);return false;">Back</a>