How to handle the onpropertychange
for a textbox in Firefox using javascript?
below is an example
var headerBGColorTextBox = document.getElementById('<%= tbHeaderBGColor.ClientID %>');
if (headerBGColorTextBox != null) {
headerBGColorTextBox.pluggedElement = document.getElementById('<%= trHeaderBG.ClientID %>');
headerBGColorTextBox.onpropertychange = function() {
alert('function called');
if (event.propertyName == 'style.backgroundColor' && event.srcElement.pluggedElement != null)
alert(event.propertyName);
event.srcElement.pluggedElement.style.backgroundColor = event.srcElement.style.backgroundColor;
};
}