Easy Tutorial
❮ Html Escapeselector Css Offset ❯

jQuery resize() Method

jQuery Event Methods

Example

Count the number of times the browser window is resized:


Definition and Usage

The resize event occurs when the browser window is resized.

The resize() method triggers the resize event, or specifies a function to run when a resize event occurs.


Syntax

Trigger the resize event for the selected elements:

Attach a function to the resize event:

Parameter Description
function Optional. Specifies the function to run when the resize event is triggered.

jQuery Event Methods

❮ Html Escapeselector Css Offset ❯