在JavaScript中,下列可以获取滚动条距窗口顶端滚动的距离的是()。
A.document.documentElement.scrollTop;
B.document.documentElement.topScroll;
C.document.style.scrollTop;
D.document.style.topScroll;
A.document.documentElement.scrollTop;
B.document.documentElement.topScroll;
C.document.style.scrollTop;
D.document.style.topScroll;
第1题
A.document.documentElement.scrollTop;
B.document.documentElement.topScroll;
C.document.style.scrollTop;
D.document.style.topScroll;
第2题
A.document.getElementByName(firstpwd)
B.document.getElementByName(pwd)
C.document.getElementByid(firstpwd)
D.document.getElementByTagName(input)
第3题
A、document.getElementByld(“flower”).checked;
B、document,getElementByld(“flower”),selected;
C、document.getElementByName(“flower”).checked;
D、document.getElementByName(“flower”),selected;
第7题
A)JavaScript中不区分大小写
B)在JavaScript中用//表示注释
C)在JavaScript中,字符串即可以用单引号引用,也可以用双引号引用
D)JavaScript语言属于弱类型编程语言
第11题
A.Java是面向对象的语言,JavaScript是脚本语言
B.Java的源代码先编译,再传到客户端。JavaScript源代码传到客户端后由浏览器解释执行
C.Java所使用的变量在使用前不必定义,JavaScript的变量在使用前必须定义
D.Java代码与HTML无关,其代码保存在独立的文档中。JavaScript可以直接嵌入HTML文件中
E.在实际应用中,JavaScript脚本常比同样功能的Java程序快