Add event handler to HTML element using javascript
<p>I want to add a event handler to a paragraph when any user click on it . For example 
i have a paragraph any user clicks on it i wan to show a alert box
but i dont want to add onlcik event to  p1 properties.    </p>

<pre><code> &lt;p id="p1"&gt;This is paragraph Click here..&lt;/p&gt;
 &lt;a href="http://www.google.com" id="link1" &gt;test&lt;/a&gt;
 document.getElementById('p1').onmouseover  = paragraphHTML; 
</code></pre>
