我的大概就是這樣?
function openWindow() ? ?{ ? ? ? ?if(confirm("確定新窗口打開?")) ? ? ? ?{ ? ? ? ? ? ?var website=prompt("請輸入網(wǎng)址:","http://idcbgp.cn/"); ? ? ? ? ? ?window.open(website,'width=400','height=500','menubar=no','toolbar=no'); ? ? ? ?} ? ? ? ?else{} ? ?}
2017-03-03
?? 這樣可好?
???? (confirm("確定新窗口打開?")==true)? window.open(prompt("請輸入網(wǎng)址:","http://idcbgp.cn/"),'width=400','height=500','menubar=no','toolbar=no'):null????
2017-03-02
就是這樣的吧