Event handled attached to form submit is not invoked
<p>This is an extension to the problem already posted here: <a href="http://stackoverflow.com/questions/7143986/display-an-alert-message-on-successfull-submission-of-a-form">display an alert message on successfull submission of a form</a></p>

<p>Another problem has arisen now. Until now I was calling this function onclick event of a "submit" button. 
But now my requirements have changed a little. Now I have to call this function by clicking a link.
The html code for that link is as shown below:</p>

<pre><code>&lt;a href="javascript:void(0);" onclick="javascript:customTargetReportToCSV('saveReport',0);"&gt;
    Save Report 
    &lt;img height="16" width="16" style="vertical-align: bottom;" src="/img/icn_export.gif" alt="export"&gt;
&lt;/a&gt;
</code></pre>

<p>And now nothing is working. The event handler attached with the <code>.submit()</code> is not getting invoked at all.</p>
