Adding javascript to hyperlink
<p>How can i add a Javascript alert to the hyperlink ?
I want to make the alert pop up when someone click on the link .
This is the script for now -</p>

<pre><code>&lt;a href="&lt;?php echo ($link1);?&gt;" onclick="popitup();" data-role="button" data-theme="b" data-inline="true" &gt; Send &lt;/a&gt;
</code></pre>

<p>And i want to add this to the link</p>

<pre><code>&lt;script type="text/javascript"&gt;alert('Text.');&lt;/script&gt;
</code></pre>
