Advertisement
Home Open Editor ❯

HTML onresize Attribute

Example

<body onresize="myFunction()">

Try this code ❯

Meaning

The onresize attribute fires when a resize event is triggered on the element or bubbles up from some descendent element.


Standard Syntax

<element onresize="script">


Applies to:

The onresize attribute can be used on the following element:

Element Attribute
<body> onresize

Advertisement

Attribute Values

Value Description
script Specifies the script to be run on onresize.
Home Open Editor ❯
Advertisement