疯子靳
2015-07-23 17:26
function openWindow(){
var opennew=confirm("yes or no");
if (opennew==true)
{
var newurl = prompt("open web page","http://www.imooc.com/");
}
else
{
return;
}
if(newnul!==null)
window.open([newurl],'_blank',"width=400,height=500","menubar=no","toolbar=no");
}
else{
document.write("hi")
}
function openWindow(){
var opennew=confirm("yes or no");
if (opennew==true)
{
var newurl = prompt("open web page","http://www.imooc.com/");
}
else
{
return;
}
if(newurl!==null){
window.open([newurl],'_blank',"width=400,height=500","menubar=no","toolbar=no");
}
else{
document.write("hi")
}
}
代码有几处错误,一个是变量名,另一个是{}的成对出现
JavaScript入门篇
739817 学习 · 9566 问题
相似问题