沒有彈窗出來,求大神看看!<!DOCTYPE html><html><head>? <title>編程練習</title>? <script type="text/javascript">? ? function openWindow(){? ? var open=confirm("確認新建窗口打開網站嗎?");? ? if(open==true) //新窗口打開時彈出確認框,是否打開? ? ? {var url=prompt("通過輸入對話框,確定打開的窗口","http;//www.qq.com");}? ? if{(url!null)? ? ? {window.open(url,"_blank",'width=400px,height=500px,menubar=no,toolbar=no');}? ? else{alert("再見1");}? ? else{alert("再見2");}? ? } ?? </script></head><body>? ?<input type="button" name="button" onclick="openWindow()" value="新窗口打開網站" /></body></html>
沒有彈窗出來,代碼到底哪里出問題呢?
Chikako
2016-11-10 00:43:10