HtmlElement

ownerDocument property

Returns the document root that owns this element, or null if the element has no owner. The document root itself returns null.

Syntax

readonly ownerDocument: HtmlElement | null