I copied the code out of http://wiki.videolan.org/Documentation:WebPlugin to register vlc events to help me figure out why vlc is not running in IE. Two events fire, but the event is null as is windows.event. How to I get the information on what event fired?
// event callback function for testing
function handleEvents(event)
{
if (!event) // <------------------------- event is null here
event = window.event; // IE <-------------- window.event also null
if (event.target) {
// Netscape based browser
targ = event.target;
} else if (event.srcElement) {
// ActiveX
targ = event.srcElement;
} else {
// No event object, just the value
alert("Event value" + event );
return;
}
if (targ.nodeType == 3) // defeat Safari bug
targ = targ.parentNode;
alert("Event " + event.type + " has fired from " + targ );
}