打开一个新窗口,并控制其外观

  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. function open_win()
  5. {
  6. window.open("http://www.jishuchi.com","_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400")
  7. }
  8. </script>
  9. </head>
  10.  
  11. <body>
  12. <form>
  13. <input type="button" value="打开窗口" onclick="open_win()">
  14. </form>
  15. </body>
  16.  
  17. </html>