title: how to press enter in an input field after set Interval
body: <p>i was just wondering if there is anyway to auto press the enter key in an input field after setInterval auto fills from with string?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>setInterval(function () {
    document.getElementById('hudinput').value = Math.random().toString(36).substring(2, 15);
  }, 5000);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="hudid" class="hudclass"&gt;
    &lt;input type="text" name="hud" id="hudinput" class="hud-input" placeholder="Enter text here..." maxlength="140"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>