A RetroSearch Logo

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

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/DOMRect/DOMRect below:

DOMRect: DOMRect() constructor - Web APIs

MDN Web Docs
  1. Web
  2. Web APIs
  3. DOMRect
  4. DOMRect()

Filter sidebar

In this article
  1. Geometry interfaces
  2. DOMRect
  3. Constructor
    1. DOMRect()
  4. Instance properties
    1. height
    2. width
    3. x
    4. y
  5. Static methods
    1. fromRect()
  6. Inheritance
    1. DOMRectReadOnly
  7. Related pages for Geometry Interfaces
    1. DOMMatrix
    2. DOMMatrixReadOnly
    3. DOMPoint
    4. DOMPointReadOnly
    5. DOMQuad
    6. DOMRectReadOnly
In this article DOMRect: DOMRect() constructor

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

Note: This feature is available in Web Workers.

The DOMRect() constructor creates a new DOMRect object.

Syntax

js

new DOMRect(x, y, width, height)
Parameters
x

The x coordinate of the DOMRect's origin.

y

The y coordinate of the DOMRect's origin.

width

The width of the DOMRect.

height

The height of the DOMRect.

Return value

A new DOMRect object.

Specifications Specification Geometry Interfaces Module Level 1
# dom-domrect-domrect
Browser compatibility See also Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Nov 17, 2024 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

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