I am trying to fire a resize event in a window programmatically:
var evt = document.createEvent('HTMLEvents'); evt.initEvent('resize', true, false); window.dispatchEvent(evt);
This, unfortunately, does not work. I am trying to make an ExtJS library for recalculations, and it uses DOM Level 3, so I cannot just call window.onresize(); .
Tower
source share