Click to return to the Reusing Browser Technology home page    
IElementBehaviorSiteOM::R...     IElementBehaviorSiteOM::R...     IElementBehaviorSiteOM In...    
Web Workshop  |  Reusing Browser Technology

IElementBehaviorSiteOM::RegisterName Method


Registers a Dynamic HTML (DHTML) behavior name.

Syntax

HRESULT RegisterName(
    LPOLESTR pchName
);

Parameters

pchName
Address of a string that specifies the name to register.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

Registering a name for a DHTML behavior allows the behavior's object model to be accessed by name. For an element named element1, the behavior named behavior1 can be accessed as follows:

element1.behavior1.myMethod();
element1.behavior1.myProperty = true;


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.