Monday, 12 August 2013

Can I catch element's resize event?

Can I catch element's resize event?

I know I can let one element resize through css3 resize property:
resize: both;
overflow: auto
but can I catch the resize event? like:
element.addEventListener('resize', fn, false);
I try this, but it doesn't work, is there other way to do this kind of job?

No comments:

Post a Comment