默認(rèn)網(wǎng)址打不開?另外怎么做到點(diǎn)擊取消沒有任何操作?
function?openWindow(){????????var?cmd=confirm("確認(rèn)要打開新窗口嗎?");????????if(cmd=true){????????????var?url=prompt("請(qǐng)輸入網(wǎng)址:","http://idcbgp.cn/");?????????????if(url!=null)??????????????{?????????????????????window.open(url,"_blank","width=400,height=500,toolbar=no,?menubar=no");???????????????}??????????else{????????????;????????}????????????????}????????else{????????????;????????}????}
默認(rèn)網(wǎng)址打開為什么會(huì)這樣呢?
另外else里怎么寫可以沒有任何操作
2018-05-06
地址完整
2018-05-06
地址完整
2018-05-04
網(wǎng)址前面加http://