為什么點擊按鈕,窗口出不來?求指導?。。?!
function openWindow(){
? ? var open=confirm("是否打開新窗口?" );// 新窗口打開時彈出確認框,是否打開
? ? if(open==true)
? ? {var win=prompt(" 通過輸入對話框,確定打開的網(wǎng)址","http://idcbgp.cn/");
? ? if(win!=null)
? ? {window.open("win,_blank,width=400,height=500,menubar=no,toolbar=no");}
? ? else{(alert"byebye");}
? ??
? ? } ??
? ? else{(alert"byebye");}
? ??
}
function openWindow(){
? ? var open=confirm("是否打開新窗口?" );// 新窗口打開時彈出確認框,是否打開
? ? if(open==true)
? ? {var win=prompt(" 通過輸入對話框,確定打開的網(wǎng)址","http://idcbgp.cn/");
? ? if(win!=null)
? ? {window.open("win,_blank,width=400,height=500,menubar=no,toolbar=no");}
? ? else{(alert"byebye");}
? ??
? ? } ??
? ? else{(alert"byebye");}
? ??
}
2016-07-01
function openWindow(){
? ? var open=confirm("是否打開新窗口?" );// 新窗口打開時彈出確認框,是否打開
? ? if(open==true)
? ? {var win=prompt(" 通過輸入對話框,確定打開的網(wǎng)址","http://idcbgp.cn");//逗號都要在英文輸入法狀態(tài)下輸入
? ? if(win!=null)
? ? {window.open("http://idcbgp.cn","_blank","width=400,height=500,menubar=no,toolbar=no");}
? ? else{alert("byebye");}
? ??
? ? } ??
? ? else{alert("byebye");}
? ??
}