I have a DIV, and I whenever the user alters the copy size, the div changes height, now whenever the DIV does this, I would like a function to run which will grab the offsetHeight of the DIV and run it through a few if statements.

I am not used to event Listeners, so any advice on the possibility of this and how to go about it would be much appreciated.