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

'navigate()' Example

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

    
      
      








Related examples in the same category

1.'navigate()' Syntax, Parameters and Note
2.'navigate()' is applied to