Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Specifies the function used to set the value of the property.
Syntax
<PUBLIC:PUT
INTERNALNAME = sInternalName
/>
Attributes
- INTERNALNAME
- Required. String specifying the name of a function used to set the value of the property.
Element Information
Number of occurrences None or One Parent elements PROPERTY Child elements None Requires closing tag No
Remarks
In the absence of a PUT function (specified either as a PUT attribute on the PROPERTY element, or as a PUT element), the onpropertychange event is automatically fired when the value of the property is set. If a PUT function is available, the onpropertychange event must be fired explicitly by the component author from the specified PUT function.
Using the <GET> and <PUT> tags to specify the functions to call to obtain the value of the property, as in the following example...:
<PUBLIC:PROPERTY NAME = "borderWidth" /> <PUBLIC:PUT INTERNALNAME = "put_borderWidth" /> <PUBLIC:GET INTERNALNAME = "get_borderWidth" /> </PUBLIC:PROPERTY>...is equivalent to the following example:<PUBLIC:PROPERTY NAME = "borderWidth" PUT = "put_borderWidth" GET = "get_borderWidth" />
See Also
GET, DHTML Behaviors, Implementing DHTML Behaviors in Script
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.