Get document object from a child element March 12, 2023 by Tarik element.ownerDocument will give you a reference to the document to which any DOM element belongs.