Contents:
.on( "resize" [, eventData ], handler )Returns: jQuery
Description: Bind an event handler to the "resize" event.
-
version added: 1.7.on( "resize" [, eventData ], handler )
resize
event. For the deprecated .resize()
method, see .resize()
.
resize
event is sent to the window
element when the size of the browser window changes:
1
2
3
|
|
resize
handler should never rely on the number of times the handler is called. Depending on implementation, resize
events can be sent continuously as the resizing is in progress (the typical behavior in Internet Explorer and WebKit-based browsers such as Safari and Chrome), or only once at the end of the resize operation (the typical behavior in some other browsers such as Opera).
Example:
1
2
3
|
|
.trigger( "resize" )Returns: jQuery
Description: Trigger the "resize" event on an element.
-
version added: 1.0.trigger( "resize" )
-
"resize"Type: stringThe string
"resize"
.
-
.on( "resize", ... )
.