Submitting form when losing focus
<p>I have a dynamically created form with a submit event listener attached to it, so I can do some ajax requests to save the data.</p>

<p>But I also want to submit it when losing focus.</p>

<p>I make the call <code>form.submit()</code> but the event listener, previously created, is ignored.</p>

<pre><code>form.addEventListener('submit', function (event_handler) {
    event_handler.preventDefault();
    /* some code */
});

// if loses focus
form.addEventListener('blur', function (event) {
   form.submit(); // submits, but ignores the defined eventListener so the preventDefault() is ignored.
   return false;
}, true);
</code></pre>

<p>I was expecting that form.submit() would run the code defined inside the submit listener.</p>

<p>Any way to go around this.</p>

<p>No jQuery or any other frameworks. Just vanilla js.</p>
