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