Solved

scrollTop property

Posted on 2007-03-26
3
1,049 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
angular2 2 way binding on load 7 38
Animated .jpg? 13 57
Elegant Way to Include Query String When it exists? 4 42
Change text to radio button and calendar form 2 32
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

919 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now