<!DOCTYPE html> <html> <body> <p>单击按钮以打开一个包含一些规格的新窗口。</p> <button onclick="myFunction()">试一试</button> <script> function myFunction() { window.open("http://www.sou-xun.com", "_blank", "toolbar=yes,scrollbars=yes,resizable=yes,top=500,left=500,width=400,height=400"); } </script> </body> </html>