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