Opening dynamic link new window (but not popup) with JavaScript
<p>I am trying to open a link in new window, however the link may contain an additional QueryString which is unfortunately available when the user clicks the link. So even the link is given in the code like:</p>

<pre><code>&lt;a href="somepage.aspx"&gt;click&lt;/a&gt;
</code></pre>

<p>when the user clicks I want user to go to</p>

<pre><code>&lt;a href="somepage.aspx?id=1"&gt;click&lt;/a&gt;
</code></pre>

<p>and the "1" value on the above example is calculated when user clicks the link. I am aware I can accomplish this with </p>

<pre><code>&lt;script&gt;
function openlink()
{
   var calc_i;
   // do calculations and update calc_i value
   window.open("somepage.aspx?id="+calc_i);
}
&lt;/script&gt;
&lt;a onclick="openlink()"&gt;click&lt;/a&gt;
</code></pre>

<p>This results in a popup window (which I don't want).
What is your suggestion?</p>
