请问我的错在哪里?
function openWindow()
{var open=confirm("确认打开吗?");
if (open==true)
{var url=prompt("请输入网站","http://www.imooc.com/");
if(url!=null)
{window.open(url,"_blank",'width=400px,height=500px,menubar=no,toolbar=no');
}
else
{alert("拜拜");}
}
else
{alert("拜拜");}
}