dont want dialog to open
<p>I'v got a page that list my contacts, every contact is wrapped in a div that onClick opens a modal dialog that shows more info about that contact.</p>

<p>NOW, on the page every contact is listed with name and email, and as said above clicking on a users "box" will result in a dialog being shown. But i want it so that when i click on the email (link of course) that the dialog does not show and default mailhandler opens instead. </p>

<p>The way it works now default mail handler (outlook) opens AND the user dialog opens too... I've tried to destroy and close the dialog when i click on the email but the dialog is probably opened after...</p>

<p>Any good fix?</p>

<p>EDIT: I think I have some good answers, but it need some adoption... what if the code on my page looked like this:</p>

<pre><code>&lt;ul id="users"&gt;
    &lt;li onClick="OpenUserDialog(usersId);"&gt;
        blablala
        &lt;span onClick="OpenMail(usersMail);"&gt;usersMail&lt;span&gt;
    &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>So when i click the userMail the onClick on the <code>&lt;li&gt;</code> is also run but I don' want that.</p>
