為什么點新窗口打開網址沒有反應呢?
??
? function openWindow()
? ? { // 新窗口打開時彈出確認框,是否打開 ? ? ?var mu=confirm("是否打開?");
? ? ? if(mu==true)
? ? ? {
? ? ? ?prompt("請輸入網址:",'http://www ? ? .imooc.com/');
? ? ? ?window.open('http://www.xianlaiwan.cn/','_blank',width=400,height=500,menubar=no,toolbar=no);
? ? ? }?
? ? ? ? }
2014-12-07
第一行語句寫在注釋后?
2014-12-07
window.open里少一個單引號