html back button code example
Example 1: js go back
history.back()
Example 2: html page back button
<form>
<input type="button" value="Go back!" onclick="history.back()">
</form>
history.back()
<form>
<input type="button" value="Go back!" onclick="history.back()">
</form>