<HEAD> <SCRIPT> function changeProp() { btnProp.value = "This is the new VALUE"; }
function changeCSSProp() { btnStyleProp.style.backgroundColor = "aqua"; } </SCRIPT> </HEAD> <BODY> <P>The event object property propertyName is used here to return which property has been altered.</P>
<INPUT TYPE=button ID=btnProp onclick="changeProp()" VALUE="Click to change the VALUE property of this button" onpropertychange=‘alert(event.propertyName+" property has changed value")‘> <INPUT TYPE=button ID=btnStyleProp onclick="changeCSSProp()" VALUE="Click to change the CSS backgroundColor property of this button" onpropertychange=‘alert(event.propertyName+" property has changed value")‘> </BODY>