代碼是否出錯?為什么不能執(zhí)行?
? <script type="text/javascript"> ?
? ? function.openWindow()
? ? {
? ? ? ? var TanChuang=confirm("是否打開新窗口?")
? ? ? ? if(TanChuang==true)
? ? ? ? {
? ? ? ? ? ? var url=prompt("請輸入網(wǎng)址:","http://idcbgp.cn/")
? ? ? ? ? ? if(url!=null)
? ? ? ? ? ? {window.open(url,'_blank','width=400px,height=500px,menubar=no,toolbar=no');}
? ? ? ? ? ? else{alert("內(nèi)容不能為空!")}
? ? ? ? }
? ? ? ? else{document.write("已取消")}
? ? }
? </script>
2017-04-18
function.openWindow()沒有那個點,要用function openWindow(),要是還不對就看看你輸入的默認網(wǎng)址是不是用的英文符號,中文的是有問題的,望采納
2017-04-08
2017-04-08
。。。