[01] forward() method

[04] forward() method
The effect of calling this method is equivalent to clicking the forward button or calling history.go(1).
grammar
Definition and Usage
The forward() method loads the next URL in the history list.
   
   
history.forward()

Equivalent to clicking the browser's forward button.

example

The following example creates a forward button on the page:

   
   
<html>
<head>
<script type="text/javascript">
function goForward()
  {
  window.history.forward()
  }
</script>
</head>
<body>

<input type="button" value="Forward" onclick="goForward()" />

</body>
</html>

     
     

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325041051&siteId=291194637