Easy Tutorial
❮ Att Button Form Att Select Name ❯

HTML onresize Event Attribute

HTML Event Attributes

Example

Run a script when the window is resized:


Browser Support

All major browsers support the onresize event attribute.


Definition and Usage

The onresize attribute is triggered when the window is resized.

The onresize attribute is commonly used to adjust the window size.


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
script The script to be run when the onresize event is triggered.
❮ Att Button Form Att Select Name ❯