js同时打开两个、多个连接

 
  
  1. <html xmlns="http://www.w3.org/1999/xhtml" > 
  2. <head> 
  3. <title>标题页</title> 
  4. <SCRIPT LANGUAGE="JavaScript"> 
  5. function hrefClick(newWin, locationWin) { 
  6. window.open(newWin);          //打开新的窗口 
  7. window.location = locationWin;//当前位置窗口也改变 
  8. </script> 
  9. </head> 
  10. <body> 
  11. <a href="javascript:hrefClick('http://www.baidu.com', 'http://www.qq.com');"> 
  12. 打开页面</a></body> 
  13. </html>