單項(xiàng)選擇題如何在瀏覽器的狀態(tài)欄放入一條消息?()

A.statusbar = "put your message here"
B.window.status = "put your message here"
C.window.status("put your message here")
D.status("put your message here")


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題打開名為“window 2”的新窗口的JavaScript語法是()

A.open.new("http://www.w3schools.com","window2")
B.window.open("http://www.w3schools.com","window2")
C.new("http://www.w3schools.com","window2")
D.new.window("http://www.w3schools.com","window2")

2.單項(xiàng)選擇題如何求得2和4中最大的數(shù)?()

A.Math.ceil(2,4)
B.Math.max(2,4)
C.ceil(2,4)
D.top(2,4)

3.單項(xiàng)選擇題定義JavaScript數(shù)組的正確方法是?()

A.var txt = new Array="tim","kim","jim"
B.var txt = new Array(1:"tim",2:"kim",3:"jim")
C.var txt = new Array("tim","kim","jim")
D.var txt = new Array:1=("tim")2=("kim")3=("jim")

4.單項(xiàng)選擇題如何在JavaScript中添加注釋?()

A.' This is a comment
B.< !--This is a comment-->
C.//This is a comment

5.單項(xiàng)選擇題for循環(huán)如何開始?()

A.for (i <= 5; i++)
B.for (i = 0; i <= 5; i++)
C.for (i = 0; i <= 5)
D.for i = 1 to 5