最新回答 / qq_洞天_0
function openWindow(){? ? ? ? var myindex = confirm("確認(rèn)打開(kāi)新窗口嗎?");? ? // 新窗口打開(kāi)時(shí)彈出確認(rèn)框,是否打開(kāi)if(myindex == true){? ? window.open('http://idcbgp.cn/','新窗口','width=400,height=500,menubar=no,status=no,scrollbars=yes');}? ? }
2020-07-07
function openWindow (){
confirm("是否打開(kāi)新的窗口") == true ? window.open("http://" + prompt('請(qǐng)輸入網(wǎng)址', 'idcbgp.cn'), '_blank','width=400,height=500,menuber=no.toolbar=no') : null;
}
confirm("是否打開(kāi)新的窗口") == true ? window.open("http://" + prompt('請(qǐng)輸入網(wǎng)址', 'idcbgp.cn'), '_blank','width=400,height=500,menuber=no.toolbar=no') : null;
}
2020-07-04
最新回答 / 前端學(xué)習(xí)中
如果b不為空值,就是說(shuō)添加了網(wǎng)址進(jìn)去,就執(zhí)行這個(gè)指令,你再補(bǔ)充一個(gè)else,把網(wǎng)址去掉,就能看到空值下輸出的東西<!DOCTYPE?html><html><head>????<title>Test</title>????<script?type="text/javascript">????????function?openWindow()?{????????????var?a?=?confirm("是否打開(kāi)新窗口");????????...
2020-07-03
已采納回答 / kiksuya
1,var url0=prompt("請(qǐng)輸入網(wǎng)址","http://idcbgp.cn"); ? 這句里面冒號(hào)錯(cuò)寫(xiě)成了中文冒號(hào),2,window.open里面的url0不應(yīng)該加引號(hào)。因?yàn)閡rl0是變量,而不是字符串3,下面的else(){? }出錯(cuò)了。沒(méi)有括號(hào)。正確的應(yīng)該是else{? }
2020-07-01
最新回答 / 綠鯉魚(yú)8119299
txt不是標(biāo)簽嗎 可以用作對(duì)象嗎 我以為都要用document.getElementById("標(biāo)簽").style. ...
2020-07-01
function openWindow(){
var a=confirm("是否打開(kāi)新窗口"); if(a==true)
{
var b=prompt("請(qǐng)輸入要打開(kāi)的網(wǎng)址","http://idcbgp.cn/");
if(b!=null)
{
window.open(b,'_blank','width=400,height=500,menubar=no,toolbar=no');
}
}
}
var a=confirm("是否打開(kāi)新窗口"); if(a==true)
{
var b=prompt("請(qǐng)輸入要打開(kāi)的網(wǎng)址","http://idcbgp.cn/");
if(b!=null)
{
window.open(b,'_blank','width=400,height=500,menubar=no,toolbar=no');
}
}
}
2020-06-29
最新回答 / 幻想未來(lái)_慕粉1473418196
hidden是windows保留關(guān)鍵字,詳見(jiàn)https://q.115.com/182920/T1268591.html?uid=20069
2020-06-29
已采納回答 / 盛良
你的else中的“document”單詞寫(xiě)成了"docement",單詞拼寫(xiě)錯(cuò)誤