I have a table with trwhere you can click. These trmay contain a.
<tr id="12" href="/guestbook/edit?id=12">
<td class="main">
<strong>Remi</strong>
<a href="mailto:xxx@xxx">xxx@xxx</a>
</td>
<td class="date">05-11-2010 11:34</td>
<td class="number">ip</td>
</tr>
This is jquery code to detect tr click
$('table tr[href]').click(function(e){
document.location.href = $(this).attr('href');
});
When I click on an email address, for example, my email client opens first (which is good), and then the page editing (which is bad) is loaded. Is it possible to detect the element that I clicked on? If it is A or TR?
source
share