为什么不行
function openWindow() {var open=confirm("是否打开新窗口?"); if(open==true) {var open1=prompt("请输入打开的新窗口","http://www.imooc.com"); if(open1!=null) {window.open(open1,"_blank",'width=400px,height=500px,menubar=no,toolbar=no');} else{alert("欢迎下次再来");}} else{alert("欢迎下次再来");}}