title: onpropertychange for a textbox in Firefox?
body: <p>How to handle the <code>onpropertychange</code> for a textbox in Firefox using JavaScript?</p>
  
  <p>Below is an example:</p>
  
  <pre><code>var headerBGColorTextBox = document.getElementById('&lt;%= tbHeaderBGColor.ClientID %&gt;');
  
  if (headerBGColorTextBox != null) {
    headerBGColorTextBox.pluggedElement = document.getElementById('&lt;%= trHeaderBG.ClientID %&gt;');
    headerBGColorTextBox.onpropertychange = function() {
      alert('function called');
      if (event.propertyName == 'style.backgroundColor' &amp;&amp; event.srcElement.pluggedElement != null)
        alert(event.propertyName);
      event.srcElement.pluggedElement.style.backgroundColor = event.srcElement.style.backgroundColor;
    };
  }
  </code></pre>