Display alert on cliking of the hyperlink
<p>On click of the hyperlink , i need to display an alert .
I tried this way , but somehow the alert is not appearing on click of that hyper link .</p>

<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;head&gt;

        &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" &gt;

        &lt;/script&gt;

         &lt;title&gt;New Web Project&lt;/title&gt;

         &lt;script type="text/javascript"&gt;

            $(function() {


           $('#kiranhype').click(function() {
  alert('Handler for .click() called.');
});


});

         &lt;/script&gt;


    &lt;/head&gt;
    &lt;body&gt;

       &lt;P&gt;&lt;a href="kiranhype"&gt;Click for a greeting&lt;/a&gt;&lt;/p&gt;

    &lt;/body&gt;
&lt;/html&gt;
</code></pre>
