A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/Element/resize below:

resize · WebPlatform Docs

resize Overview Table Synchronous No Bubbles No Target dom/Element Cancelable No Default action ?

## Notes

Remarks

The onresize event fires for block and inline objects with layout, even if document or CSS (cascading style sheets) property values are changed. Objects have layout when measurements such as the height and width attributes are set, or when the position of the object is set. Intrinsic objects, such as button, and windowed objects, such as window and iframe, fire as expected. This event does not fire for files with embedded controls. Resizing HTML applications also fires the onresize event. No default action. To invoke this event, do one of the following:

The pEvtObj parameter is required for the following interfaces:

window.onresize events in Metro style apps using JavaScript

In Metro style apps using JavaScript, the window.onresize event fires when the screen keyboard is shown and when the app’s viewport is resized. You can use the window.innerHeight, window.innerWidth, window.pageXOffset, and window.pageYOffset style properties to determine the size and location of the new viewport.

Syntax Standards information

There are no standards that apply here.

Event handler parameters
pEvtObj [in]
Type: ****IHTMLEventObj****
Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4