Open a new link from a button
<html> <head> <script type="text/javascript"> function open_win() { window.open("http://www.java2s.com") } </script> </head> <body> <form> <input type=button value="Open Window" onclick="open_win()"> </form> </body> </html>