views:

435

answers:

1

When a browser window is resized, I understand there's a JQuery method to hook it up to a event handler.

I was wondering if there's one, if the window is resized from the DOM, is there a way to do this?

+2  A: 

This should work

$(window).bind('resize', function() {
    alert('Resizing now');
});
Steerpike
It works even when the user is not manually resizing the window but its done automatically from say a function?
DotnetDude
yep, should do :)
Steerpike