點(diǎn)確認(rèn)后沒(méi)有出現(xiàn)輸入網(wǎng)址的對(duì)話框
<!DOCTYPE?html> <html> ????<head> ????????<title>?new?document?</title>?? ????????<meta?http-equiv="Content-Type"?content="text/html;?charset=gbk"/>??? ????????<script?type="text/javascript">?? ????????????function?openWindow(){ ????????????????if(confirm("是否新建窗口打開(kāi)網(wǎng)站?")){ ????????????????????var?url?=?propmt("請(qǐng)輸入您要打開(kāi)的網(wǎng)址","http//idcbgp.cn/"); ????????????????window.open(?url_,"black","member=no,?toolbar=no,?scrollbars=no,?width=400,?height=500"); ????????????????} ????????????} ??</script>? ????</head>? ????<body>? ??<input?type="button"?value="新窗口打開(kāi)網(wǎng)站"?onclick="openWindow()"?/>? ????</body> </html>
點(diǎn)確定后沒(méi)有出現(xiàn)輸入網(wǎng)址的對(duì)話框,什么原因?
2016-09-06
你的打開(kāi)鏈接寫錯(cuò)了,應(yīng)該是url,不是url_
2016-09-06
變量輸入錯(cuò)誤url