MSDN Library

IHTMLDOMAttribute2::ownerDocument Property

Retrieves the document object associated with the node.

Syntax


HRESULT IHTMLDOMAttribute2::get_ownerDocument(IDispatch **p);

Parameters

p
Address of a pointer to a variable of type IDispatch interface that receives the document object.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The IHTMLDOMAttribute2::ownerDocument is the document object that is used to create new nodes.

This property returns NULL when the node is a document.

IHTMLDOMAttribute2::ownerDocument was introduced in Microsoft Internet Explorer 6.

Community Additions

Show:
© 2016 Microsoft