title: Input textbox onchange is not firing when data is assigned to input textbox
body: <p>This is my HTML page</p>
  
  <pre><code>&lt;script&gt;
  function set()
  {
  document.getElementById("txt").value++;
  }
  &lt;/script&gt;
  &lt;input id="txt" type="text" onchange="javascript:alert('txt changed');" value="0"&gt;
  &lt;br/&gt;
  &lt;input type="button" onclick="set()" value="Set Data"/&gt;
  </code></pre>
  
  <p>When I press the button, the text box value is changing, and the onchange event is not firing,
  but when I enter value manually in the textbox, it is firing the onchange.</p>
  
  <p>All I want is to call a JavaScript function when data is changed in the textbox when a button is clicked.</p>
  
  <p>Can you help?</p>