inline javascript onclick event
<p>This is my html code</p>

<pre><code>&lt;a href="#" onclick="return clickHandler()"&gt;Hit&lt;/a&gt;
</code></pre>

<p>This is my javascript file</p>

<pre><code>function clickHandler(evt) {
    var thisLink = (evt)?evt.target:Window.event.srcElement;
    alert(thisLink.innerHTML);
    return false;
}
</code></pre>

<p>But when i click the Hit Link, it redirects.</p>
