jQuery .resize() event
Syntax and Description
.resize(handler)
.resize()
handler
is a function to execute each time the event is triggered.
Return value is the jQuery object, for chaining purposes.
resize
method binds an event handler to the
resize
JavaScript event, or trigger that
event on an element.
.resize(handler)
is a shortcut
for .bind('resize', handler)
.resize()
is a shortcut for
.trigger('resize')
.
The resize event is sent to the window element when the size of the browser window changes.
$(window).resize(function() {
$.print('Handler for .resize() called.');
});