我這代碼哪里有問題啊,點(diǎn)擊按鈕沒反應(yīng)
function openWindow(){ ? ?var chuankou=confirm("是否要打開新窗口"); ? ? ? ? ?if (chuankou==true) ? ? ? ? ? ?{ ? ? ? ? ? ? ? ?var wanzhi=prompt("請輸入需要打開窗口的名稱","http://idcbgp.cn/"); ? ? ? ? ? ? ? ?window.open(wanzhi,'_top','width=400,height=600'); ? ? ? ? ? ?} ? ? ? ? ?}?
2015-07-28
這里分號錯了,改成英文的
這里分號也寫成中文的,改成英文的
修改后的代碼