打開新窗口問題
function?openWindow()????{????????var?temp=confirm("確定打開新窗口嗎?");??????if(temp==true)??????{??????????var?url("輸入一個(gè)網(wǎng)址","http://idcbgp.cn/")??????????window.open(url,"_blank","toolbar=no,menubar=noscrollbars=yes,width=400,height=400")??????}????}
為什么點(diǎn)擊按鈕沒有反應(yīng)
2017-05-30
function?openWindow()????{?
???????var?temp=confirm("確定打開新窗口嗎?");?????
?if(temp==true)??????{?????????
?var?url = prompt("輸入一個(gè)網(wǎng)址","http://idcbgp.cn/") ; ? ? ? ??
window.open(url,"_blank","toolbar=no,menubar=noscrollbars=yes,width=400,height=400")??????}????}