I have this IE specific bit of code for finding the originating node:
var obj=window.even t.srcElement;
How do I do that cross browser (Opera, NS, Safari...)? Is there a standard
DOM method?
I seem to recall NS worked something like this:
onmousedown=han dleThat;
function handleThat(e){
e.target;
// but then I'd have to take the parent to get the same node as IE
}
Event handling makes my head spin!
Jeff
var obj=window.even t.srcElement;
How do I do that cross browser (Opera, NS, Safari...)? Is there a standard
DOM method?
I seem to recall NS worked something like this:
onmousedown=han dleThat;
function handleThat(e){
e.target;
// but then I'd have to take the parent to get the same node as IE
}
Event handling makes my head spin!
Jeff
Comment