How To Send User on Next Page When Click on Back Button?

Date Published: 01/09/2020 Published By: JaiSchool

<!DOCTYPE html>
<html>
<body>

<h1>You will go on next page if you click on browser back button If previous history is available.</h1>

<script>
  window.onpopstate=function()
  {
    history.forward();
  }
</script>
</body>
</html>

Publish A Comment

Leave a Reply

Your email address will not be published. Required fields are marked *