Navigate window to a URL
<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>