DotnetDude
DotnetDude

Reputation: 11817

JQuery - Window resized from DOM - fire event

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?

Upvotes: 1

Views: 1172

Answers (1)

Steerpike
Steerpike

Reputation: 17554

This should work

$(window).bind('resize', function() {
    alert('Resizing now');
});

Upvotes: 4

Related Questions