I have a table. Each line is a link to a page (for example, google.com) that is called by the js method " onClick window.open ":
<tr class='tr' onClick="win=window.open('http://google.com');win.focus();" >
In the last column, I have an anchor href link to another page (for example - jsfiddle):
<td class='td'><a href = "http://jsfiddle.net">JSFiddle</a></td>
If I click on the anchor link, it opens, but also opens the first page called onClick.
I found the opposite problem:
How to disable HREF if onclick is running?
We can disable href by adding "return false" to the onClick event.
Is it possible to prevent onClick from executing when the link is clicked?
Here is my demo: Fiddle