This example demonstrates how to use the onpropertychange event to determine the name and value of an updated property.
The srcElement property of the event object identifies the object that the onpropertychange event has fired on.
The propertyName property of the event object returns the property name that was changed.
Click the button below to change its backgroundColor
Cascading Style Sheet (CSS) property to the color specified in the drop-down
list box.
[Right-click and choose View Source from the shortcut menu.]
© 2007 Microsoft Corporation. All rights reserved. Terms of use.