第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

求大神幫忙解答

求大神幫忙解答

q諷刺 2018-05-13 15:50:28
<!DOCTYPE html><html>?<head>? <title> new document </title>? ? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>?? ? <script type="text/javascript">? ?? function openWindow(){?? var open=confirm("是否打開新建網(wǎng)頁窗口")// 新窗口打開時(shí)彈出確認(rèn)框,是否打開?? if(open==true){?? var url=prompt("請(qǐng)?zhí)顚懘_認(rèn)打開的網(wǎng)頁""http://www.imoooc.com");// 通過輸入對(duì)話框,確定打開的網(wǎng)址,默認(rèn)為 http://idcbgp.cn/?? if(open!=null){?? window.open(url,'_blank','width=400,height=500,menubar=no,toolbar=no')//打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。?? }??? ?? else{(alert"再見!")}?? }?? else{(alert"再見!")}?? }? </script> ?</head> ?<body> ?? <input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" /> ?</body></html>這段代碼是我自己寫的,然后一直不能運(yùn)行,用別人的代碼就直接秒提示對(duì)話框,求大神指點(diǎn)
查看完整描述

1 回答

已采納
?
Keyro

TA貢獻(xiàn)105條經(jīng)驗(yàn) 獲得超21個(gè)贊

幫你改了其中幾個(gè)錯(cuò)誤,有幾個(gè)地方語法寫錯(cuò)了




<!DOCTYPE html>

<html>


<head>

<title> new document </title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

?<script type="text/javascript"> ?

function openWindow() {

var open = confirm("是否打開新建網(wǎng)頁窗口")// 新窗口打開時(shí)彈出確認(rèn)框,是否打開

if (open == true) {

var url = prompt("請(qǐng)?zhí)顚懘_認(rèn)打開的網(wǎng)頁http://www.imoooc.com");// 通過輸入對(duì)話框,確定打開的網(wǎng)址,默認(rèn)為 http://idcbgp.cn/

if (open != null) {

window.open(url, '_blank', 'width=400,height=500,menubar=no,toolbar=no')//打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。

}

else { alert("再見!") }

}

else { alert("再見!") }

}

</script>

</head>


<body>

<input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />

</body>


</html>


查看完整回答
反對(duì) 回復(fù) 2018-05-13
  • q諷刺
    q諷刺
    您好,您能具體的標(biāo)注一下嗎?剛自學(xué)入門的小菜,見諒
  • 1 回答
  • 0 關(guān)注
  • 905 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)