 <p>I think you want to submit the form when the input is clicked so:</p> <pre><code>var input = document.querySelector('input'), form = document.querySelector('form'); input.addEventListener('click', function(){ form.submit(); }); </code></pre>