试了无数遍还是不成功,求助!
function openWindow()
{
var mychar=comfirm("是否要打开新窗口?");
if(mychar=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("再见")}
}