輸入兩個window.open語句為什么不會打開兩個窗口?
?function?openWindow() { ????var?open=confirm("是否打開新頁面?"); ????if(open==true) ????{ ????var?newsite=prompt("打開什么網(wǎng)站","http://idcbgp.cn/"); ????//?通過輸入對話框,確定打開的網(wǎng)址,默認(rèn)為?http://idcbgp.cn/ ???window.open(newsite,'_blank','width=400,height=500,menubar=yes,toolbar=yes'); ???window.open(newsite,'_blank','width=400,height=500,menubar=yes,toolbar=yes'); ????} ????else?alert("bye"); }
2016-10-25