back button javascript
snippet in html

js go back previous page

user6703


  <button onclick="goBack()">Go Back</button>

  
<script>

function goBack() {

  window.history.back();

  }

</script> 

js go back

user4973

history.back()

back button javascript

user4412

<button onclick="goBack()">Go Back</button>

<script>
function goBack() {
  window.history.back();
}
</script>