哪里出错了?求大神解释,谢啦
function openWindow(){var window= confirm("你确定打开网页?");
if(window==true)
{
var url = prompt("请输入网址","http://www.imooc.com/");
window.open('http://www.imooc.com','_blank','width=400px,height=500px,menubar=no,toolbar=no');
}
else
}
function openWindow(){
var window= confirm("你确定打开网页?");
if(window==true){
var url = prompt("请输入网址","http://www.imooc.com/"); window.open('http://www.imooc.com','_blank','width=400px,height=500px,menubar=no,toolbar=no');
} else
}
else 这里还有的大括号呢,,,