Answers for "how to go back main page in javascript"

2

javascript page back

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

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

js go back

history.back()
Posted by: Guest on April-14-2020

Code answers related to "how to go back main page in javascript"

Browse Popular Code Answers by Language