1
I read something about srcElement and saw that when I do window.event.srcElement, this approach works only on IE. Well, I don’t have enough allowances to discuss it. What’s going on is that a function I have here doesn’t work on Chrome. Down with function:
function MarcarCelula() {
celula.selecionaCelulaViaTD(window.event.srcElement);
}
Comes two mistakes:
1) Uncaught Referenceerror: cell is not defined
2) Uncaught Typeerror: Cannot read Property 'value' of null
The reference I took to affirm my hypothesis above was in this link soen
Enter all the code if possible, because the first error seems to be related to the object
celula
and not withwindow.event
.– DontVoteMeDown
Yes srcElement it is only available in IE, for all brownser you can use the target https://developer.mozilla.org/en-US/docs/Web/API/Event/target
– Brunno