title: Use submit event listener when form is submitted via inline JavaScript?
body: <p>We have a script that tracks form submits by adding an event listener to the form. The problem is that one customer submits the form via a link using</p>
  
  <pre><code>&lt;a href="javascript:document.formname.submit();"&gt;Submit&lt;/a&gt;
  </code></pre>
  
  <p>which ignores the event listener. Here's a JSFiddle to demonstrate: <a href="http://jsfiddle.net/XhLkG/" rel="nofollow">http://jsfiddle.net/XhLkG/</a></p>
  
  <p>As you can see the Submit button triggers the alert while the Submit link simply just submits the form and bypasses the event listener.</p>
  
  <p>Is there a way to still trigger the event listener?</p>
  
  <p>EDIT: We cannot change the markup since it's on our customer's homepage where they have embedded our script. Sorry if I didn't make it clear.</p>