jQuery: stopPropagation for link
<p>How can i stop propagation for link?</p>

<pre><code>&lt;script src="http://code.jquery.com/jquery.min.js"&gt;&lt;/script&gt;
&lt;script&gt;
    $(function() {
        $("#g").click(function(event){
            alert("Link clicked");
            event.stopPropagation();
        });
    });
&lt;/script&gt;
&lt;a id="g" href="http://google.com"&gt;Google&lt;/a&gt;
</code></pre>

<p>I want the browser don't go to google, just show alert.</p>
