Find offset on div scroll
How can i get scroll height of div.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Joginder BangerRank #360 · 7K reputationPosted Nov 23, 2014, 8:18 PM EST
find the height with the help of jquery. you can do like
// Returns height of browser viewport $( window ).height(); // Returns height of HTML document $( document ).height();Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Nov 23, 2014, 8:22 PM EST
Hi samanta,
Read following links it might help you
https://developer.mozilla.org/en-US/docs/Web/API/Element.scrollHeight
http://stackoverflow.com/questions/2522579/how-do-i-get-the-real-height-of-a-overflow-hidden-or-overflow-scroll-div