jQuery resize() Event

The jQuery resize() event triggers when size of the browser window changes.

Syntax of Resize Event


The selector is the element on which resize event to be occurred. The function is an optional parameter. This function is called when the resize event fired.


alert("Window is resized.")

In the above example, an alert message is displayed when the user resized the window.

Read more articles

General Knowledge

Learn Popular Language