Execute a JavaScript when the browser window is resized:
The onresize event attribute is supported in all major browsers.
The onresize attribute fires when an object is resized.
The onresize attribute is most often used when the browser window is resized.
None.
| Value | Description |
|---|---|
| script | The script to be run on onresize |
HTML Event Attributes
Your message has been sent to W3Schools.