'forward()' Example : forward « Javascript Methods « JavaScript Reference

'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.'forward()' Syntax, Parameters and Note
2.'forward()' is applied to