為什么無反應,自己理解的,不知道哪里出問題
<html>
<head>
?<title>對話框的應用</title>
<script>
????????function?url(){
????????????var?ques?=?confirm("你確定要打開新窗口嗎?");
????????????
????????????if(ques==true){
????????????????var?web?=?prompt("請輸入您要打開的網(wǎng)址:");
????????????????if(web==true){
????????????????????window.open(web,'_blank','width=400,height=500,menubar=no,toolbar=no'
????????????????}else{
????????????????????web.close();
????????????????}
????????????}
????????????else{
????????????????ques.close();
????????????}
????????}
????????</script>
????</head>
????<body>
????????<input?type="button"?value="點擊我"?onclick="url()">
????</body>
</html>
2020-07-01
關閉 瀏覽器的攔截窗口彈出設置
2020-04-04
2020-04-04
2020-04-03
? window.open(web,'_blank','width=400,height=500,menubar=no,toolbar=no'
web錯了,這里填url,窗口打開的網(wǎng)頁