HTML onresize event Attribute
Example
<body onresize="myFunction()">
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">
Browser Support
Status
Attribute Values
Value | Description |
---|---|
script | Specifies the script to be run on onresize |
Technical Details
Supported HTML elements:
<body>