click on link triggers click on cell
Posted: Fri Apr 13, 2007 11:03 am
Hi there...I have a table which is clickable and executes a function
works ok...
in that table, in one cell i have a link
of course when i click that link the mouseclick_table triggers as well...how can i make it so when i click on that certain link, the onclick function of the table doesnt execute?
thanks
Code: Select all
var myfnc3 = "mouseclick_table("+id+")";
house.setAttribute("onclick",myfnc3);
function mouseclick_table(id){
table = document.getElementById(id);
table.setAttribute("border" ,"1");
table.setAttribute("bordercolor","#003366");
}in that table, in one cell i have a link
Code: Select all
<a href = "javascript: somefunction()">thanks