為啥不彈窗呢?
function openWindow()
{var queren=confirm("確定打開嗎?");
if(queren==true)
{
?var myweb=prompt("請輸入網(wǎng)址","http://idcbgp.cn");
if(myweb!=null)
{
window.open(myweb,"_blank",'width=400,heigth=500,menubar=no,toolbar=no')
}
else{alert("再見");}
}
else{alert("再見");}
}?
2024-01-17
function openWindow(){
???? var queren=confirm("確定打開嗎?");
???? if(queren==true){
????? ???var myweb=prompt("請輸入網(wǎng)址","http://idcbgp.cn");
???????? if(myweb!=null){
???????? ????window.open(myweb,"_blank",'width=400,heigth=500,menubar=no,toolbar=no')
???????? }
???????? else{
???????? ????alert("再見");
???????? }
??????}?
}
自己對比一下吧,符號別用中文
2024-05-10
寫代碼最好用編輯器,你這代碼放編輯器里面 錯誤一下看體現(xiàn)出來了。。 全是中文符號的問題