這樣有什么問題么
function openWindow() ?{ ?if(confirm("確定打開新窗口嗎?")) ? ? ?{var openwindow=prompt("確定打開網址:"," http://www.xianlaiwan.cn/"); ? ? ? if(openwindow) ? ? ? ? ? ?{window.open(' http://www.xianlaiwan.cn/','width=400px,height=500px,menubar=no,toolbar=no'); ? ? ? ? ? ? } ? ? ? } ? }
2016-05-21
”:“號需要在英文輸入法下輸入,window.open([URL], [窗口名稱], [參數字符串])
2016-05-21
你的http:// 那個冒號需要用英文的輸入 ,后面的寬度高度,不需要加px
2016-05-21
if應該包在confirm那一層。