Solved

scrollTop property

Posted on 2007-03-26
3
1,051 Views
Last Modified: 2007-11-27
I've heard of a scrollTop property in javascript or css that allows you to, in an element wth a set height, set the number of pixels that are scrolled off the top of the element.  How exactly is this property used?  and from where is it accessed?
0
Comment
Question by:josephdaviskcrm
  • 3
3 Comments
 
LVL 18

Accepted Solution

by:
Eternal_Student earned 125 total points
ID: 18795621
This is part of the DOM (document object model) for IE ONLY:

http://developer.mozilla.org/en/docs/DOM:element.scrollTop

That should explain everything you need to know about it but I do warn that it is not standards compliant.

0
 
LVL 18

Expert Comment

by:Eternal_Student
ID: 18795623
This is part of the DOM (document object model) for IE ONLY:

http://developer.mozilla.org/en/docs/DOM:element.scrollTop

That should explain everything you need to know about it but I do warn that it is not standards compliant.

0
 
LVL 18

Expert Comment

by:Eternal_Student
ID: 18795624
Sorry for posting twice ;-(
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question