function openWindow()
{
var mywin=confirm("打开窗口吗?");
if (mywin==true)
{
var write=prompt("请输入网址:”,“http://www.imooc.com/”);
if(write!==null)
{
window.open(write,'width=400,height=500,menubar=no,toolbar=no');
}
else
{
document.write("打开失败");
}
}
else{
document.write("打开失败");
}
}
有人帮我看看嘛?哪里错了?
是 write != null