单项选择题

分析下面的Javascript代码段,输出结果是()

A.stud
B.tuden
C.uden
D.udent


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题Javascript中制作图片代替按钮的提交效果需要手动提交方法submit(),以下调用正确的是()。

A.submit()
B.myform.submit()
C.document.myform.submit()
D.window.myform.submit()

2.单项选择题在HTML页面中包含一个按钮控件mybutton,如果要实现点击该按钮时调用已定义的Javascript函数compute,要编写的HTML代码是()。

A.〈input name=“mybutton” type=“button” onBlur=“compute()” value=“计算”〉
B.〈input name=“mybutton” type=“button” onFocus=“compute()” value=“计算”〉
C.〈input name=“mybutton” type=“button” onClick=“functioncompute()” value=“计算”〉
D.〈input name=“mybutton” type=“button” onClick=“compute()” value=“计算”〉

3.多项选择题在Javascript中,对于浏览器对象的层次关系理解正确的是()。

A.window对象是所有页面内容的根对象
B.document对象包含location对象和history对象
C.location对象包含history
D.document对象包含form对象

6.单项选择题在HTML页面上编写Javascript代码时,应编写在()标签中间。

A.〈javascript〉和〈/javascript〉
B.〈script〉和〈/script〉
C.〈head〉和〈/head〉
D.〈body〉和〈/body〉

7.单项选择题在HTML页面中,不能与onChange事件处理程序相关联的表单元素有()。

A.文本框
B.复选框
C.列表框
D.按钮

8.单项选择题在Javascript中要改变页面文档的背景色,需要修改document对象的()属性。

A.BackColor
B.BackgroundColor
C.BgColor
D.Background

9.单项选择题在HTML文档对象模型中,history对象的()用于加载历史列表中的下一个URL页面。

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