Open a new Window
<html> <body> <input type="button" value="Open a new window" onClick="window.open('http://www.java2s.com', '_blank')"> <input type="button" value="Open a blank document" onClick="document.open('test.htm', '_blank')"> </body> </html>