Answers for "how to go back a page using js"

2

javascript page back

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

<script>
function goBack() {
  window.history.back();
  }
</script>
Posted by: Guest on March-19-2021
0

javascript link to go back

<a href="javascript:history.go(-1)">[Go Back]</a>
Posted by: Guest on March-17-2021

Browse Popular Code Answers by Language