ellisd5
10-10-2008, 10:33 AM
Hello all,
I have a TD which looks like this...
<TD onMouseover='highlightCell(true);' onMouseout='highlightCell(true);' onClick='loadLink();'>
<TABLE>
<TR>
<TD>img icon</TD>
<TD><A HREF=''loadLink();'>My Link</A></TD>
<TD><A HREF='deleteLink();'>delete icon</A></TD>
</TR>
</TABLE>
</TD>
This code has been simplified, what it is, is a link, with a trash can icon at the end of it. If you click on the text or anywhere in the cell it loads your link, if you click the trashcan then deletes the link. This code works fine in IE. The problem is in firefox, if I click on the delete icon, deleteLink() is called but loadLink() is also called. how can I stop the TD's onclick event getting called when I click on the delete icon inside the TD?
TIA
Dale
I have a TD which looks like this...
<TD onMouseover='highlightCell(true);' onMouseout='highlightCell(true);' onClick='loadLink();'>
<TABLE>
<TR>
<TD>img icon</TD>
<TD><A HREF=''loadLink();'>My Link</A></TD>
<TD><A HREF='deleteLink();'>delete icon</A></TD>
</TR>
</TABLE>
</TD>
This code has been simplified, what it is, is a link, with a trash can icon at the end of it. If you click on the text or anywhere in the cell it loads your link, if you click the trashcan then deletes the link. This code works fine in IE. The problem is in firefox, if I click on the delete icon, deleteLink() is called but loadLink() is also called. how can I stop the TD's onclick event getting called when I click on the delete icon inside the TD?
TIA
Dale