i need an event listener for changes on document.body (offsetHeight, clientHeight etc.) in pur javascript (no jquery etc.)
should work in ff, safari, chrome, IE9,8,7
have anybody ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Such thing is not possible directly.
The most simple way around is applying timer that will run constantly (using
setInterval) and compare the current height with the previous height.Shouldn’t be hard to implement, will bring some quick example if you like though.