單項(xiàng)選擇題下面哪些語句不能夠彈出提示框,或在頁面輸出內(nèi)容()

A.alert(Hello World)
B.prompt("Hello World","")
C.document.write("Hello World")
D.document.writeln("Hello World")


您可能感興趣的試卷

你可能感興趣的試題

2.單項(xiàng)選擇題下列JavaScript語句中,()能實(shí)現(xiàn)單擊一個(gè)按鈕時(shí)彈出一個(gè)消息框。

A.<BUTTON VALUE ="鼠標(biāo)響應(yīng)" onClick=alert("確定")></BUTTON>
B.<INPUT TYPE="BUTTON" VALUE ="鼠標(biāo)響應(yīng)" onClick=alert("確定")>
C.<INPUT TYPE="BUTTON" VALUE ="鼠標(biāo)響應(yīng)" onChange=alert("確定")>
D.<BUTTON VALUE ="鼠標(biāo)響應(yīng)" onChange=alert("確定")></BUTTON>

3.單項(xiàng)選擇題能使網(wǎng)頁中出現(xiàn)彈出確認(rèn)和取消對(duì)話框的javascript代碼是()

A.alert("您一共消費(fèi)了:"+100+’元’)
B.prompt("請(qǐng)輸入:")
C.pop("error")
D.confirm("繼續(xù)?")

4.單項(xiàng)選擇題哪種方法不是history對(duì)象的方法()

A.forword()
B.back()
C.go()
D.jump()

6.單項(xiàng)選擇題復(fù)選框失去焦點(diǎn)時(shí)觸發(fā)的事件處理程序是()

A.onClick
B.onFocus
C.onSelect
D.onBlur

7.單項(xiàng)選擇題分析下面的JavaScript語句:str="This apple costs"+50.5;執(zhí)行后str的結(jié)果是()

A.This apple costs 50.5
B.This apple costs 5.5
C."This apple costs" 50.5
D."This apple costs" 5.5

9.單項(xiàng)選擇題分析下面的Javascript代碼:x=11;y="number";m=x+y;m的值為()

A.11number
B.number
C.11
D.程序報(bào)錯(cuò)