I want to do the equivalent of this:
$(window).bind('resize', function () {
myResizeFunction();
}).trigger('resize');
without jquery.
The reason being is. This is the only part of code in my javascript library that uses jquery.
And i see no point in including jquery if im only using this one command.
NOTE: Just to clarify, i want myResizeFunction to run everytime the broswer is resized. A cross-browser solution is prefered!
Thanks:)
Simply use this
To hook with resize event of window