javacript confirm box
<p>I have a href as follows:</p>

<pre><code>&lt;a class="eLink" href="http:www.abc.com"&gt;chk here xyz&lt;/a&gt;&lt;/li&gt;
</code></pre>

<p>and javascript for "eLink" is as follows:</p>

<pre><code>$("a.eLink").click(function link(evt) {
        url = evt.target.href;

        if (url.toString().toLowerCase().indexOf(".gov") &lt;= 0) {

            var tk = "Do you really want to continue?";

            if (confirm(tk)) {
                window.open(url, 'newwin');
            }
        }
        else
        { window.open(url, 'newwin'); }

        return false;
    });
});
</code></pre>

<p>Now, when click the hyper link i get the message "Do you really want to continue?", now When i click 'yes' it open a new browser with the target page "abc.com" and my current browser also changes to "abc.com". i want to change the code in sucha way that current browser remains int he same page and taget browser "abc.com" opens in the new page and if i click "No", the browser should remain in the same page. I tried using them in a plain javascript with confirm boxes,but the problem is wherever i have to use this code, the external browser link has to be given in the javascript which i want to avoid. Is there a quick change in the above script that would accompalish what i would want. Thanks.</p>
