Export (0) Print
Expand All

RegisterName method

Registers a Dynamic HTML (DHTML) behavior name.

Syntax


HRESULT retVal = object.RegisterName(pchName);

Parameters

pchName [in]

Type: LPOLESTR

The address of a string that specifies the name to register.

Remarks

By registering a name for a DHTML behavior, the behavior's object model can 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;

 

 

Community Additions

ADD
Show:
© 2014 Microsoft