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