When we are scroll trough a div, I want to know how to get the how much we have scrolled using javascript. This should a small code, however i googled it, but didn't get yet. Still trying, but may be here someone knows, so i posted the problem. Regards
try: document.getElementById("div1").scrollTop to retrieve/set the current scroll position. and: document.getElementById("div1").scrollHeight to get the total height scrollable. So if you are scrolled halfway,scrollTop should be half of scrollHeight (approximately...)