For some reason I can't get access to the target/srcElement in IE when an event is triggered on the window/document element.

For example, this does not work in IE (does work in Moz/NS):

<script language="Javascript">

window.onfocus=focusHandler;
window.onblur=blurHandler;

function focusHandler(e) {
if (!e) var e = window.event;
var targ;
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
self.status="Focus - Target: " + targ;

}

function blurHandler(e) {
if (!e) var e = window.event;
var targ;
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
self.status="Blur - Target: " + targ;
}
</script>


The following DOES work in IE (and Moz/NS):

<table border="1">
<tr>
<td onfocus="focusHandler()" onblur="blurHandler()">
Some Text
</td>
</tr>
</table>


Does anyone have any thoughts on this, or encountered it before. It is probably just due to my lack of understanding of IE's object model, but I can't seem to find any clear answers anywhere.

Just for reference, the reason I want to find the target/srcElement is to compensate for IE's event bubbling. I only want the handler to do something when it is fired by the element I registered it on, not by any of its sub-elements.

Hope this makes sense.
Thanks in advance.