A RetroSearch Logo

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

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/Node/ownerDocument below:

Node: ownerDocument property - Web APIs

Node: ownerDocument property

Baseline Widely available

The read-only ownerDocument property of the Node interface returns the top-level document object of the node.

Value

A Document that is the top-level object in which all the child nodes are created.

If this property is used on a node that is itself a document, the value is null.

Example
// Given a node "p", get the top-level HTML
// child of the document object

const d = p.ownerDocument;
const html = d.documentElement;
Specifications Browser compatibility

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