jquery - How to fire an event on browser resize -
i have jquery modal popup window on page. utilize resize event below:
$(window).resize(function () { //some code };
everything works fine function fired when modal window resized. want code run on browser window resize.
thanks in advance.
just check target :
$(window).resize(function (e){//pass event if(e.target === window){ //is window! } });
if resize modal, target div itself.
jquery jquery-ui
No comments:
Post a Comment