【单选题】【消耗次数:1】
在javascript中,下列选项中可以获取滚动条距窗口顶端滚动的距离的是(选择一项)
document.documentElement.scrollTop
document.documentElement.scroll
document.style.scrollTop
document.style.scroll
参考答案:
复制
纠错
相关题目
【单选题】 在javascript中,下列选项中可以获取滚动条距窗口顶端滚动的距离的是
①  document.documentElement.scrollTop
②  document.documentElement.scroll
③  document.style.scrollTop
④  document.style.scroll
【单选题】 下面选项中,( )能够获取滚动条距离页面顶端的距离。(选择一项)
①  onscroll
②  scrollLeft
③  scrollTop
④  top
【单选题】 下面选项中,( )能够获取滚动条距离页面顶端的距离。
①  onscroll
②  scrollLeft
③  scrollTop
④  top
【单选题】 下面( )不是document对象的方法。(选择一项)
①  getElementsByName( )
②  getElementById( )
③  write( )
④  reload( )
【单选题】 下面( )不是document对象的方法。(选择一项)
①  getElementsByTagName( )
②  getElementById( )
③  write( )
④  reload( )
【单选题】 在javaScript中,运行下列代码后的结果是 var d=1document.write(typcof(d));(选择一项)
①  char
②  number
③  string
④  undefined
【单选题】 在JavaScript中,运行下面代码后的返回值是( )。var flag = true;document.write(typeof(flag));(选择一项)
①  undefined
②  null
③  number
④  boolean
【单选题】 关于document对象的常用方法,以下说法错误的有:()(选择一项)
①  getElementById( ) 返加拥有指定id的第一个对象的引用
②  getElementById( ) 返加拥有指定id的对象的集合
③  getElementsByName( ) 返加拥有指定名称的对象的集合
④  write() 向文档写文本,HTML表达式或javascript代码
【单选题】 有如下JavaScript代码: .... script language=JavaScript var x = true; document.write(x); /script .....页面运行后,输出( )。(选择一项)
①  1
②  0
③  true
④ 
【单选题】 在javaScript中,运行下列代码后的结果是 var d=1; document.write(typcof(d));
①  char
②  number
③  string
④  undefined
随机题目
【单选题】 We often get ____ when people cut in line.
①  annoying
②  annoyed
③  to annoy
④  annoy
【单选题】 16. By using virtual reality programmes, it is possible to ____ deep into outer space without ever leaving Earth.
①  explore
②  find
③  escape
④  stay
【单选题】 Three-fourths of the homework ____ today.
①  has finished
②  has been finished
③  have finished
④  have been finished
【单选题】 Not until the early years of the 19th century ____ what heat is.
①  man knew
②  did man know
③  man did know
④  didn’t man know
【单选题】 The gate is too____ for a car; we’ll have to walk through. ?
①  shallow ?
②  loose ?
③  broad ?
④  narrow?
【单选题】 I’d like to ____ a single room at the holiday inn for two days.
①  serve
②  conserve
③  preserve
④  reserve
【单选题】 27. The police are anxious to interview everyone ____ last night’s incident.
①  concerning
②  B. concerned about
③  concerned in
④  concerned for
【单选题】 John was going to ____ Mary by telling his friends how much weight she had gained.
①  essential
②  embarrass
③  elementary
④  consider
【单选题】 She picked ____ the little book and give it to him.
①  on
②  over
③  off
④  up
【单选题】 -I hope you don’t mind my pointing out your mistakes.- ____.
①  Of course
②  You’re welcome
③  Certainly not
④  Yes, I do