通过一次点击打开多个窗口

  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. function open_win()
  5. {
  6. window.open("http://www.microsoft.com/")
  7. window.open("http://www.jishuchi.com/")
  8. }
  9. </script>
  10. </head>
  11.  
  12. <body>
  13. <form>
  14. <input type=button value="打开窗口" onclick="open_win()">
  15. </form>
  16. </body>
  17.  
  18. </html>