<input type="button" onclick="window.open('','','width=400,height=300');window.opener=null;window.close()" value="打开新窗口" />
这个应该是你要的。测试没问题。