As the title says, can I add a listener to a div to get when the clientWidth and clientHeight values change?
Asked
Active
Viewed 757 times
1 Answers
2
Not directly no. If the width of the div is determined by the window width however you can attach a resize event to the window and when that fires you can grab the size of your div directly.

Thomas Devries
- 839
- 4
- 18