代码哪里有问题
function openWindow(){
var chuankou=confirm("是否要打开新窗口");
if (chuankou==true)
{
var wanzhi=prompt("请输入需要打开窗口的名称","http://www.imooc.com/");
window.open(wanzhi,'_top','width=400,height=600');
}
}
function openWindow(){
var chuankou=confirm("是否要打开新窗口");
if (chuankou==true)
{
var wanzhi=prompt("请输入需要打开窗口的名称","http://www.imooc.com/");
window.open(wanzhi,'_top','width=400,height=600');
}
}
2015-07-28
举报