javascript autoclick with condition
<p>I want to make a form where if someone type the word <code>ok</code> in the input field, the button will be auto clicked. How can this be done?</p>

<pre class="lang-html prettyprint-override"><code>&lt;input type="text" id="text"&gt;&lt;br&gt;&lt;br&gt;

&lt;input id="autoclick" type="button" value="type ok"&gt;
</code></pre>