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

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

這個(gè)網(wǎng)頁為什么打開后顯示是網(wǎng)頁無法訪問?

這個(gè)網(wǎng)頁為什么打開后顯示是網(wǎng)頁無法訪問?

祀未 2016-06-14 00:43:13
<!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?open1=confirm("是否打開新頁面?") ??if(open1==true){ ????var?open2=prompt("請(qǐng)輸入網(wǎng)址","http://idcbgp.cn/") ?????if(open2!=null){ ??????window.open('http://idcbgp.cn/','_blank','width=400,height=500,toolbar=yes,menubar=no'); ?? ?????}else ????????{ ?????????alert("不能打開哦"); ???????????} ??}else{ ??????alert("還是不能哦"); ??????}? ??} ???</script>? ?</head>? ?<body>? ??<input?type="button"?value="新窗口打開網(wǎng)站"?onclick="openWindow()"?/>? ?</body> </html>
查看完整描述

2 回答

已采納
?
慕萊塢9220042

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

你好:

首先,這一句有問題:

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

括號(hào)是中文的,改成英文的,而且最后沒有加“;”,也要英文的分號(hào);

其次,這一句:

window.open('http://idcbgp.cn/','_blank','width=400,height=500,toolbar=yes,menubar=no');

http后面的冒號(hào)也是中文的,換成英文的就可以了。

改正后的代碼:

<!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?open1=confirm("是否打開新頁面?")
??if(open1==true){
????var?open2=prompt("請(qǐng)輸入網(wǎng)址","http://idcbgp.cn/");
?????if(open2!=null){
??????window.open('http://idcbgp.cn/','_blank','width=400,height=500,toolbar=yes,menubar=no');
??
?????}else
????????{
?????????alert("不能打開哦");
???????????}
??}else{
??????alert("還是不能哦");
??????}?
??}
???</script>?
?</head>?
?<body>?
?<input?type="button"?value="新窗口打開網(wǎng)站"?onclick="openWindow();"?/>?
?</body>
</html>

你可以試試了。

望采納!

查看完整回答
2 反對(duì) 回復(fù) 2016-06-14
?
一毛錢

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

http://idcbgp.cn/? 中間的冒號(hào)你用的是中文狀態(tài),應(yīng)該是http://idcbgp.cn/

查看完整回答
1 反對(duì) 回復(fù) 2016-06-14
  • 2 回答
  • 0 關(guān)注
  • 1545 瀏覽
慕課專欄
更多

添加回答

舉報(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)