History 'forward()' Example : History « Window Browser « JavaScript DHTML






History 'forward()' Example

    
<html>
<body>
<script language="JavaScript">
    function function1() {
        history.forward();
    }
</script>
<a href="http://www.java2s.com">Open a new document to build the history object</a>
<input type="button" value="Go forward" onclick="function1();">
</body>
</html>

      
      








Related examples in the same category

1.History 'back()' Example
2.A Browser History Count
3.Use history back button
4.Go Back to previous Page
5.Go Back to some step
6.Go Back to previous Page using number
7.Methods and Properties of the History Object