Hi
My question is really simple. In IE error handling I try to access
information about the source of the event. Yet srcElement comes up
undefined. In FF e.target works fine. How can I find out the source of
the event in IE within iFrame?
I use standard javascript code, that works just fine on a normal HTML
page:
function anError(e)
{
var el;
if (!e)
{
var e=window.event;
}
if (e.target)
{
el=e.target;
}
else if (e.srcElement)
{
el=e.srcElement;
}
alert(el.id);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---