ドキュメント

Events/resize

From jQuery JavaScript Library

Jump to: navigation, search

« Back to Events

resize( fn )

Bind a function to the resize event of each matched element.
The resize event fires when a document view is resized
Arguments:
fnFunction
A function to bind to the resize event on each of the matched elements.
function callback(eventObject) {
  this; // dom element
}
Examples:

To make resizing the web page window a pain in the neck, try:

$(window).resize(function(){
  alert("Stop it!");
});

NameType