點確認(rèn)后沒有出現(xiàn)輸入網(wǎng)址的對話框
<!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("是否新建窗口打開網(wǎng)站?")){
????????????????????var?url?=?propmt("請輸入您要打開的網(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="新窗口打開網(wǎng)站"?onclick="openWindow()"?/>?
????</body>
</html>點確定后沒有出現(xiàn)輸入網(wǎng)址的對話框,什么原因?
2016-09-06
你的打開鏈接寫錯了,應(yīng)該是url,不是url_
2016-09-06
變量輸入錯誤url