event.srcElement not working in Firefox
I've seen others post about this but I can't find an answer to my particular problem.
In my application, I'm displaying an HTML table as a grid. Each TD cell has its own unique ID assigned to it. When the user clicks within that TD cell, I call the following JS function:
What would an alternative solution be that could work in both IE and Firefox to grab the element source information. In this example, I'm trying to get the background color.
event.srcElement.style.backgroundColor = event.srcElement.orgBGColor;
document.form1.cells.value = remove(document.form1.cells.value,vBoxCol + '_' + nBoxRow + ',');
event.srcElement.style.backgroundColor = "yellow"
document.form1.cells.value = document.form1.cells.value + vBoxCol + '_' + nBoxRow + ','