Click to return to the Reusing Browser Technology home page    
IElementBehaviorSite Inte...     IElementBehaviorSiteCateg...     IElementBehaviorSite Inte...    
Web Workshop  |  Reusing Browser Technology

IElementBehaviorSite::GetElement Method


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.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.