為什么沒有打開新窗口啊?
function openWindow() ??
? ? {
? ? var open=confirm("是否打開新窗口?");
? ? if(open==true)
? ? {
? ? ? var url=prompt("please imput url","http://www.baidu.com");
? ? if(url!=null) {window.open(url,'_blank',width=400,height=500,menubar=no,toolbar=no);}
? ? else{alert("再見!");} ?
? ? ? }
? ? ? else{alert("bye-bye!");}
? ? ? ? }
? ??
2015-04-05
width=400,height=500,menubar=no,toolbar=no要用單引號引起來