div doesn't have onresize. Is there a simply way to call myFunction when div will resized? p.s. I' m changing div's size via another function not on browser resizing
<div onresize="myFunction()" id =5 style="width:50px; background-color:red">
text
</div>