title: what is the replacement for 'overflowchanged' event handler?
body: <p>The <code>overflow</code> property for a div tag in my cshtml page is set to <code>auto</code>. I'm trying to run a javascript function when the page overflow changes. For example when the page is short there is no scrollbars and when it gets long a vertical scrollbar appears in the right side of the div.
  when the page gets shorter again, the scrollbar disappears.
  I found this <a href="http://help.dottoro.com/ljbnnejo.php" rel="nofollow noreferrer">link</a> here introducing the overflowchanged event but it won't work. After a bit of search I found out that it's deprecated and is no longer available. Now my question is what is the replacement for it and if there is none, what are your suggestions for solving my problem?</p>