Retrieves the element to which a Dynamic HTML (DHTML) behavior is attached.
Syntax
HRESULT GetElement( IHTMLElement **ppElement );
Parameters
- ppElement
- Address of a pointer to an IHTMLElement interface that specifies the element to which the DHTML behavior is attached.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
A DHTML behavior can access the host document object model through the element that is retrieved by this method.
This method can be successfully called after the DHTML behavior has received the BEHAVIOREVENT_CONTENTREADY notification through a call to the IElementBehavior::Notify method.