大家帮忙看看一下代码哦~~~谢谢~~~~
<!doctype html> <html> <head> <meta charset="utf-8"> <title>弹出新的窗口</title> <script type="text/javascript"> function openWindow(){ var myOpen = confirm("是否打开新的窗口?"); if(myOpen==true){ window.open('http://www.imooc.com','width=400,height=300,top=100','_blink') } else{ alert("Sorry!!!") } } </script> </head> <body> <input type="button" onClick="openWindow()" value="点击我打开新的窗口" /> </body> </html>
http后面的冒号换成英文半角输入就好了