I have a problem with the IE9 quirks mode. I have registered an oncahnge-event to an input element. This works so far, but in IE9 our site goes to quirks mode (it is as it is) and there I have the problem, that the browser doesn't pass the event-Object into my handler method.
document.getElementById("foo").onchange=myChangeMethod;
function myChangeMethod(event){
//In IE 9 quirks mode "event" is undefined...
if(event != undefined){
//do stuff
}
}
This can be tested in IE10 (i suppose als in IE9) with opening the WebDeveloper Console (F12), Setting BrowserMode to "IE9" and the Document-Mode to (IE5-Quirks). Then the browser behaves the same like setting the native IE9 to "IE 9 Compatibility mode" and Document-Mode to "Quirks".
Is there a possibility to get the event-Object somehow?
Thanks in advance!