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

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

2-7,點(diǎn)了打開(kāi) ‘新窗口打開(kāi)網(wǎng)站’ 按鈕,發(fā)現(xiàn)一點(diǎn)用都沒(méi)有,求大神看看我錯(cuò)在哪?

<!DOCTYPE HTML>

<html>

<head>

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

<title>confirm</title>

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

? ? function Wopen()

? ? {

? ? ? ? var a;

? ? ? ? var b=confirm("是否打開(kāi)");

? ? ? ? if(b==true)

? ? ? ? {

? ? ? ? var a =prompt("請(qǐng)輸入:http://idcbgp.cn/");

? ? ? ? ? if(a==http://idcbgp.cn/)

? ? ? ? ? {

? ? ? ? ? ? ? window.open('http://idcbgp.cn','width=400','heith=500','menubar=no','toolbar=no')

? ? ? ? ? }

? ? ? ? ??

? ? ? ? }

? ? }


? </script>?

?</head>?

?<body>?

??

? ? ? ?<input name="button" type="button" onClick="Wopen()" value="新窗口打開(kāi)網(wǎng)站" />

?</body>

</html>


正在回答

3 回答

function Wopen()

? ? {

? ? ? ??

? ? ? ? var b=confirm("是否打開(kāi)");

? ? ? ? if(b==true)

? ? ? ? {

? ? ? ? var a =prompt("請(qǐng)輸入:http://idcbgp.cn/");

? ? ? ? ? if(a!=null)//此處

? ? ? ? ? {

? ? ? ? ? ? ? window.open('http://idcbgp.cn','_blank','width=400,heith=500,menubar=no,toolbar=no');//此處

? ? ? ? ? }

? ? ? ? ??

? ? ? ? }

? ? }

幫你改了一下

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

小新手 提問(wèn)者

對(duì)我很有參考價(jià)值,發(fā)現(xiàn)自己還是不夠細(xì)心和簡(jiǎn)潔,謝謝
2016-10-12 回復(fù) 有任何疑惑可以回復(fù)我~
#2

小新手 提問(wèn)者

非常感謝!
2016-10-12 回復(fù) 有任何疑惑可以回復(fù)我~

window.open('http://idcbgp.cn','width=400','heith=500','menubar=no','toolbar=no')


你這句話里面的height寫(xiě)錯(cuò)了,還有就是在這句話后面加個(gè)分號(hào)要好一點(diǎn)

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

Ready_鞠

還有就是 'width=400','heith=500','menubar=no','toolbar=no' 這一段是寫(xiě)在一個(gè)''里面的,你這個(gè)是分為幾個(gè)''來(lái)寫(xiě)了,這是錯(cuò)誤的,它的參數(shù)字符串各參數(shù)是用逗號(hào)隔開(kāi)而已
2016-10-11 回復(fù) 有任何疑惑可以回復(fù)我~
#2

小新手 提問(wèn)者

謝謝你,謝謝
2016-10-12 回復(fù) 有任何疑惑可以回復(fù)我~

if(a==''),加個(gè)單引號(hào)或雙引號(hào)吧

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

小新手 提問(wèn)者

非常感謝
2016-10-12 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

2-7,點(diǎn)了打開(kāi) ‘新窗口打開(kāi)網(wǎng)站’ 按鈕,發(fā)現(xiàn)一點(diǎn)用都沒(méi)有,求大神看看我錯(cuò)在哪?

我要回答 關(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)