單項(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")


您可能感興趣的試卷

你可能感興趣的試題

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

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

2.單項(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")

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

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

4.單項(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

5.單項(xiàng)選擇題如何編寫當(dāng)i不等于5時執(zhí)行某些語句的條件語句?()

A.if =! 5 then
B.if <>5
C.if (i <> 5)
D.if (i != 5)