求大神告知哪里不對(duì),就是沒有窗口彈出來/(ㄒoㄒ)/~~
?function openWindow()
? ? {
? ? ? ? var new=confirm("是否在新窗口打開");
? ? ? ? if(new==true)
? ? ? ? {
? ? ? ? ? ? var url=prompt("請(qǐng)輸入網(wǎng)址","http://idcbgp.cn/");
? ? ? ? ? ? window.open(url,"_block","width=400px,height=500px,menubar=no,toolbar=no");
? ? ? ? }
? ? }
2017-02-11
額,看出來了,是你變量名搞錯(cuò)了,不能用new,new是關(guān)鍵字
2017-02-11
?window.open(url,"_block","width=400px,height=500px,menubar=no,toolbar=no");里面不是雙引號(hào),是單引號(hào)吧