為什么我的這個(gè)打不開(kāi)新的窗口啊
function openWindow(){
? ? ? ? var oppen=confirm("要打開(kāi)新窗口嗎?");
? ? ? ? // 新窗口打開(kāi)時(shí)彈出確認(rèn)框,是否打開(kāi)
? ? ? ? if(oppen==true)
? ? ? ? {
? ? ? ? ?oppen=prompt('要打開(kāi)',' http://idcbgp.cn/');?
? ? ? ? }
? ? ? ? else null;
? ? }
? ? // 通過(guò)輸入對(duì)話框,確定打開(kāi)的網(wǎng)址,默認(rèn)為 http://idcbgp.cn/
? ? window.open('oppen','_blank','with=100','height=100','menubar=no','toollbar=no')
? ? //打開(kāi)的窗口要求,寬400像素,高500像素,無(wú)菜單欄、無(wú)工具欄。
? ??
2019-02-14
改成下面這樣吧
你下面這句很多錯(cuò)誤了,前面課程內(nèi)容需要仔細(xì)看看:
window.open('oppen','_blank','with=100','height=100','menubar=no','toollbar=no')
2019-02-15
好的? 謝謝