if(url!=null)为什么不能写成if(url==true)
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=500,menubar=no,toolbar=no");}
else{alert("再见");}
}
else{alert("bay");}
}