0

I would like to listen to change on document.body.clientHeight it is possible and how?

For example when some node is appended into body, clientHeight is changed.

2

1 Answer 1

0

You can make use of the resize event.

window.addEventListener('resize', reportWindowSize);

https://developer.mozilla.org/en-US/docs/Web/API/Window/resize_event

Not the answer you're looking for? Browse other questions tagged or ask your own question.