感觉代码没错,为啥最后网页打不开呢?
function openWindow(){
var mymessage=confirm("确认打开吗");
if(mymessage==true)
{var wangzhi=prompt("请输入你的网址:","http://www.imooc.com");
if(wangzhi!=null)
{windows.open(wangzhi,'_blank','width=400,height=500,menubar=no,toolbar=no');}
else
{alert("goodbye!");}
}
else{alert("goodbye!");}
}