怎么不出現(xiàn)prompt的提示窗口呢
function openWindow() ? {var open=confirm("確定打開嗎"); ? if(open==true){ ? ? ? var url=prompt("打開下面網址","http://idcbgp.cn/"); ? if(url!=null) ? {window.open('http://idcbgp.cn/','_blank',width=500px,height=400px)} ? ? }; ? else ? {return;} ? else ? {return;} ?} 怎么就不出現(xiàn)prompt的提示窗口呢
2015-02-09
width=500px,height=400px這樣代碼為什么沒有加引號
為什么會有兩個else語句,還有if后面的大括號多了一個};把這個刪掉,并且刪掉一個else語句就應該可以了