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;