单项选择题下列不是document对象的属性的是:()

A.anchors
B.forms
C.location
D.image


您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题history从属于window,下列能访问前一页面方法是:()

A.back(-1)
B.back(1)
C.forward(1)
D.go(-1)

3.单项选择题与window对象无关的属性是下列哪项:()

A.top
B.self
C.left
D.frames

4.单项选择题如何在浏览器的状态栏放入一条消息:()。

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")

6.单项选择题与image对象不相关的事件处理是下列哪项:()。

A.onError
B.onMouseOut
C.onLoad
D.onOpen

7.单项选择题以下哪个选项中的方法全部属于window对象:()

A.alert;clear;close
B.clear;close;open
C.alert;close;confirm
D.alert;setTimeout;write

8.单项选择题在JavaScript中,下列哪段代码能够在1秒之后执行表达式expression?()

A.window.setTimeout(1000,expression);
B.window.setTimeout(expression,1);
C.window.setTimeout(1,expression);
D.window.setTimeout(expression,1000);

9.单项选择题Javascript是如何实现继承的?()

A.创建父类对象作为子类的原型(prototype)
B.使用 extends 关键子继承父类
C.创建子类对象作为父类的原型(prototype)
D.使用 class 关键子继承父类

10.单项选择题以下哪段代码不能正确创建函数show()?()

A.function show(text){ alert(text); }
B.var showFun = function show(text){ alert(text); }
C.var showFun = function(text){ alert(text); }
D.var showFun =new function("text" , "alert(text)"};