編程練習(xí)---點(diǎn)擊無反應(yīng)
??<script?type="text/javascript">?? ???function?openWindow() ???{ ???????var?mymessage=confirm("要打開新窗口嗎?"); ???if?(mymessage==true) ?????{ ???????var?url=prompt("請(qǐng)輸入網(wǎng)址","http://idcbgp.cn") ?????if(url!=null) ????????{ ?????????window.open("http://idcbgp.cn","_blank","width=400,height=500,menubar=no,toolbar=no") ?????????}? ??????else{alert("Goodbye!");} ???????}? ???else{alert("Goodbye!");} ????} </script>
搞了一個(gè)多小時(shí),也沒弄明白,哪里錯(cuò)了。請(qǐng)達(dá)人幫忙看一下。
2015-12-18
var?url=prompt("請(qǐng)輸入網(wǎng)址","http://idcbgp.cn")這里的的逗號(hào)是中文的吧