Href and confirm button
<p>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,'_self'); 
            }
        }
        else
        { window.open(url, 'newwin'); }

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

<p>Now my issue is when i click the href and click 'cancel' in the confirm button, my page goes to "abc.com", but it shouldnt happen. My browser should remain the same. what script should i use in the else part so i remain the same page. thanks.</p>
