Using the Browser History Object to Navigate

We can use javascript history object for Navigating.The below code will help you.



 <html>

<body>
<center>
<h1>Using Browser History object Back and Forward Method</h1>
<form>
  <input type="button" value="MoveBack" onClick="window.history.back()">  
  <input type="button" value="MoveForward" onClick="window.history.forward()">
</form>
</center>
</body>
</html>
Tags: , ,

Join Us!