为啥在这里可以运行,我要是在其他浏览器,就不能运行,求大神解答
为啥在这里可以运行,我要是在其他浏览器,就不能运行,求大神解答 function openWindow(){ var open=confirm("要打开新的网页吗") if(open==true){ var url=prompt("请确定即将访问的网址:","http://www.imooc.com/") } if(url!=null) { window.open(url,"_blank",'width=400,height=400'); } else{alert("bye");} else{alert("see you"); } }