I read something about srcElement and saw that when I do window.event.srcElement, this approach works only in IE. Well, I do not have enough money to discuss this. What happens is that a function I have here does not work in chrome. Below the function:
function MarcarCelula() {
celula.selecionaCelulaViaTD(window.event.srcElement);
}
There are two errors:
1) Uncaught ReferenceError: cell is not defined
2) Uncaught TypeError: Can not read property 'value' of null
The reference I took to assert my above hypothesis was this link of SOen