Easy Tutorial
❮ Dom Obj Number Prop Style Overflowy ❯

onresize Event

Event Object

Example

Execute JavaScript code when the browser window is resized:


Definition and Usage

The onresize event occurs when the browser window or frame is resized.

Syntax

In HTML:

In JavaScript:

Parameter Description
SomeJavaScriptCode Required. Specifies the JavaScript to be executed when the event occurs.

Browser Support

All major browsers support the onresize event.


HTML Tags That Support the onresize Event:


❮ Dom Obj Number Prop Style Overflowy ❯