點確認后沒有出現輸入網址的對話框
<!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("是否新建窗口打開網站?")){ ????????????????????var?url?=?propmt("請輸入您要打開的網址","http//www.xianlaiwan.cn/"); ????????????????window.open(?url_,"black","member=no,?toolbar=no,?scrollbars=no,?width=400,?height=500"); ????????????????} ????????????} ??</script>? ????</head>? ????<body>? ??<input?type="button"?value="新窗口打開網站"?onclick="openWindow()"?/>? ????</body> </html>
點確定后沒有出現輸入網址的對話框,什么原因?
2016-09-06
你的打開鏈接寫錯了,應該是url,不是url_
2016-09-06
變量輸入錯誤url