大家幫忙看看
function openWindow(){ ? ?if(confirm("你要打開嗎?")){ var url = prompt("請輸入一個網址","http://www.xianlaiwan.cn/"); ? ? ?window.open( url,"_blank","toolbar=no, menubar=no, scrollbars=yes, ?width=400, height=500"); } ? ?}
function openWindow(){ ? ?if(confirm("你要打開嗎?")){ var url = prompt("請輸入一個網址","http://www.xianlaiwan.cn/"); ? ? ?window.open( url,"_blank","toolbar=no, menubar=no, scrollbars=yes, ?width=400, height=500"); } ? ?}
2017-08-04
舉報
2017-08-07
謝謝,我已改過來了
2017-08-04
先將confirm("你也要打開嗎?")儲存在變量中,再if(變量==ture)