JavaScript 参考手册
Window open() 方法
尝试一下 »
源代码:
点击运行 »
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>蜜蜂教程(mifengjc.com)</title> <script> function open_win() { window.open("http://www.microsoft.com/"); window.open("https://www.mifengjc.com/"); } </script> </head> <body> <form> <input type="button" value="打开窗口" onclick="open_win()"> </form> </body> </html>
运行结果:
点击运行 »