How to simulate target="_blank" in JavaScript
<p>When a user clicks on a link, I need to update a field in a database and then open the requested link in a new window.  The update is no problem, but I don't know how to open a new window without requiring them to click on another hyperlink.</p>

<pre><code>&lt;body onLoad="document.getElementById('redirect').click"&gt;
&lt;a href="http://www.mydomain.com?ReportID=1" id="redirect" target="_blank"&gt;Report&lt;/a&gt;
&lt;/body&gt;
</code></pre>
