JavaScript Reference/Javascript Methods/forward

Материал из Web эксперт
Перейти к: навигация, поиск

"forward()" Example

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



"forward()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |history                         window (NN4 only)             |
+----------------+--------------------------------------------------------------+



"forward()" Syntax, Parameters and Note

Note:
Loads a visited URL simulating the clicking of the browser"s forward button.
    
Syntax:
    
objectName.forward()