title: How to watch an input textbox using pure Javascript
body: <p>This is my textbox</p>
  
  <pre><code>&lt;input id="txtbox1" type="text"/&gt;
  </code></pre>
  
  <p>Is their anyway in javascript to watch this textbox textchange without using events like <code>onchange</code>,<code>onblur</code> just like <code>$watch</code> in angularjs,</p>
  
  <pre><code>&lt;input ng-model='modelname' type='text'/&gt;
  </code></pre>
  
  <p>By using angularjs I can watch this by <code>$watch</code>,
  I want same as this one but in pure Javascript.
  Because I have a file that uses only Javascript functions so I just want to watch the textchange of value.</p>