Anchor with "computed" URL
<p>I have a JS script that appends to the HTML page the pairs: input + anchor</p>

<p>Can I compute the URL before the redirect happens? </p>

<p>Now I have link that looks like this:</p>

<pre><code>&lt;a href="#" onclick="myFunct();return false;"&gt;link&lt;/a&gt;
</code></pre>

<p>and <code>myFunct</code> uses <code>window.location.href</code> to redirect webpage. The problem with this approach is that I cannot (obviously) CTRL+click on the link for opening goal link in a new tab.</p>

<p><strong>Details:</strong></p>

<ul>
<li><p>The link URL is known after obtaining the URL from the server - this operation is very expensive for me and I would like to do that only in case it is absolutely necessary. </p></li>
<li><p>The idea is: user chooses a link, he/she clicks it, url is obtained from server and user is redirected (in the same window or in a new tab if he/she uses CTRL+click)</p></li>
</ul>

<p>Thanks!</p>
