1

As the title says, can I add a listener to a div to get when the clientWidth and clientHeight values change?

tt9
  • 5,784
  • 6
  • 42
  • 65

1 Answers1

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