JavaScript Reference/Javascript Methods/navigate

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

"navigate()" Example

    
<html>
<body>
<script language="JavaScript">
    function function1() {
        window.navigate("http://www.wbex.ru");
    }
</script>
<input id=myB 
       type="button" 
       value="Navigate to wbex.ru home page" 
       onclick="function1();">
</body>
</html>



"navigate()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |window                                                        |
+----------------+--------------------------------------------------------------+



"navigate()" Syntax, Parameters and Note

Note:
Loads a new document into the current window.
    
Syntax:
    
window.navigate(param1)
Parameters:
    param1   Required; the URL of the document.