輸入兩個window.open語句為什么不會打開兩個窗口?
?function?openWindow()
{
????var?open=confirm("是否打開新頁面?");
????if(open==true)
????{
????var?newsite=prompt("打開什么網站","http://www.xianlaiwan.cn/");
????//?通過輸入對話框,確定打開的網址,默認為?http://www.xianlaiwan.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
?function?openWindow() { ????var?open=confirm("是否打開新頁面?"); ????if(open==true) ????{ ????var?newsite=prompt("打開什么網站","http://www.xianlaiwan.cn/"); ????//?通過輸入對話框,確定打開的網址,默認為?http://www.xianlaiwan.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"); }