1 回答
已采纳

诺丁山丶
TA贡献11条经验 获得超2个赞
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <script type="text/javascript"> function Wopen() { window.open("http://www.imooc.com","_blank","width=600,height=400,top=100,left=0"); } </script> </head> <body> <input type="text" name="button" type="button" onClick="Wopen()" value="点击我打开新窗口"> </body> </html>
我把你的代码重写了一遍,没有问题,可以正常弹出,无报错。代码贴出来了,你复制后试试看。
你截图的代码片段,没发现问题。
-------------------------------------
TIPS:以后问问题,源代码不要截图!源代码不要截图!源代码不要截图!方便查抄错误。
添加回答
举报
0/150
提交
取消