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

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

求助大神 為啥我的不能彈出新窗口啊 看了好久都不知道哪里有錯(cuò)誤

<!DOCTYPE?html>
<html>
?<head>
??<title>?new?document?</title>??
??<meta?http-equiv="Content-Type"?content="text/html;?charset=gbk"/>???
??<script?type="text/javascript">??
??function?Wopen()
??{
??var?mymessage=confirm("是否打開新窗口");
??if(mymessage==ture)
??{
??????var?url=prompt("請(qǐng)輸入網(wǎng)址","?http://idcbgp.cn/");
??????if(mymessage!=null)
??????{
??????windows.open(url,'_blank','width=400px,height=500px,menubar=no,toolbar=no');
??????}
??}
??else
??{
??????alert("再見!");
??}
??}
??</script>?
?</head>?
?<body>?
	??<input?type="button"?value="新窗口打開網(wǎng)站"?onclick="Wopen"?/>?
?</body>
</html>


正在回答

6 回答

牛逼? 你的TRUE? TURE 寫反了,,改過來就好。。。。

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

九黎i 提問者

非常感謝!
2017-11-25 回復(fù) 有任何疑惑可以回復(fù)我~
#2

ParseDark 回復(fù) 九黎i 提問者

不客氣啦 要細(xì)心一點(diǎn)
2017-11-25 回復(fù) 有任何疑惑可以回復(fù)我~
  1. 字符編碼=utf-8

  2. ture改成true

  3. prompt中的網(wǎng)址是英文的冒號(hào):

  4. windows改為window

  5. 最后的onclick="wopen()"?

    改玩再試試

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

慕神4291904

第五個(gè)是Wopen() 我寫成小寫的了
2017-11-27 回復(fù) 有任何疑惑可以回復(fù)我~

<!DOCTYPE html>

<html>

?<head>

? <title> new document </title>??

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

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

? function Wopen()

? {

? var mymessage=confirm("是否打開新窗口");

? if(mymessage==true)

? {

? ? ? var url=prompt("請(qǐng)輸入網(wǎng)址"," http://idcbgp.cn/");

? ? ? if(mymessage!=null)

? ? ? {

? ? ? windows.open(url,'_blank','width=400px,height=500px,menubar=no,toolbar=no');

? ? ? }

? }

? else

? {

? ? ? alert("再見!");

? }

? }

? </script>?

?</head>?

?<body>?

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

?</body>

</html>



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

最后一個(gè) onclick="Wopen()" ? ?你少了一個(gè) ?括號(hào)。。。。。 這是個(gè)不易察覺的錯(cuò)誤。。。

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

九黎i 提問者

謝謝 但是還是有問題 點(diǎn)了確定之后不會(huì)彈出新網(wǎng)頁 你可以幫我看一下嗎?麻煩了
2017-11-25 回復(fù) 有任何疑惑可以回復(fù)我~

<!DOCTYPE?html>

<html>

?<head>

??<title>?new?document?</title>??

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

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

??function?Wopen()

??{

??var?mymessage=confirm("是否打開新窗口");

??if(mymessage==ture)

??{

??????var?url=prompt("請(qǐng)輸入網(wǎng)址","?http://idcbgp.cn/");

??????if(mymessage!=null)

??????{

??????windows.open(url,'_blank','width=400px,height=500px,menubar=no,toolbar=no');

??????}

??}

??else

??{

??????alert("再見!");

??}

??}

??</script>?

?</head>?

?<body>?

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

?</body>

</html>


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

是不是瀏覽器問題?禁用了

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

舉報(bào)

0/150
提交
取消

求助大神 為啥我的不能彈出新窗口啊 看了好久都不知道哪里有錯(cuò)誤

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

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

幫助反饋 APP下載

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

公眾號(hào)

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