最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

代碼有錯(cuò)嗎?提交正確了為什么說(shuō)網(wǎng)頁(yè)上有錯(cuò)誤運(yùn)行不了呢?

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>window.open</title>
<script type="text/javascript">
? function Wopen(){
?var mymessage=comfirm("你想知道慕課網(wǎng)怎么走么?");
?if(mymessage==true)
?window.open('http://yifanck.cn','_blank','width=600,height=400,top=100,left=0');
?else
?{alert("打開(kāi)失??!");
?}
</script>
</head>
<body>
??? <input name="button" type="button" onClick="Wopen()" value="點(diǎn)擊我,打開(kāi)新窗口!" / >
</body>
</html>

正在回答

3 回答

<!DOCTYPE?HTML>
<html>
<head>
<meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/>
<title>window.open</title>
<script?type="text/javascript">
??function?Wopen(){
?var?mymessage=confirm("你想知道慕課網(wǎng)怎么走么?");
?if(mymessage==true){
?window.open('http://yifanck.cn','_blank','width=600,height=400,top=100,left=0')}
?else
?{alert("打開(kāi)失?。?);
?}?
}
</script>
</head>
<body>
????<input?name="button"?type="button"?onClick="Wopen()"?value="點(diǎn)擊我,打開(kāi)新窗口!"?/?>
</body>
</html>
  1. confirm 你寫(xiě)成comfirm

  2. function Wopen(){} 你缺了個(gè)大括號(hào)

這樣就可以運(yùn)行了^_^

沒(méi)看來(lái)你把例子綜合應(yīng)用,挺會(huì)舉一反三嘛。我也剛學(xué),要不一起做個(gè)伴~

2 回復(fù) 有任何疑惑可以回復(fù)我~


<script type="text/javascript">
? function Wopen(){
?var mymessage=confirm("你想知道慕課網(wǎng)怎么走么?");
?if(mymessage==true){
?window.open('http://yifanck.cn','_blank','width=600,height=400,top=100,left=0');}
?else
?{alert("打開(kāi)失敗!");
?}?

}
</script>

2 回復(fù) 有任何疑惑可以回復(fù)我~

單詞拼寫(xiě)錯(cuò)誤confirm寫(xiě)成了comfirm,?var mymessage=comfirm("你想知道慕課網(wǎng)怎么走么?");

2 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

代碼有錯(cuò)嗎?提交正確了為什么說(shuō)網(wǎng)頁(yè)上有錯(cuò)誤運(yùn)行不了呢?

我要回答 關(guān)注問(wèn)題
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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