<html> <head> <script type="text/javascript"> function openWin() { var myWindow= window.open("http://crowdforthink.com", "_blank"); myWindow.focus(); myWindow.print(); myWindow.close(); } </script> </head> <body> <input type="button" value="Open window" onclick="openWin()" /> </body> </html>