<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<SCRIPT LANGUAGE="JavaScript">
function a(){ alert(window_event_constructor().keyCode);}
function firefox(){
HTMLElement.prototype.defineGetter("runtimeStyle", this.style);
window.constructor.prototype.defineGetter("event", window_event);
Event.prototype.defineGetter("srcElement", this.target);
}
function element_style(){
return this.style;
}
function window_event(){
return window_event_constructor();
}
function event_srcElement(){
return this.target;
}
function window_event_constructor(){
if(document.all){
return window.event;
}
var caller = window_event_constructor.caller;
while(caller!=null){
var argument = caller.arguments[0];
if(argument){
var temp = argument.constructor;
if(temp.toString().indexOf("Event")!=-1){
return argument;
}
}
caller = caller.caller;
}
return null;
}
if(window.addEventListener){
firefox();
}
</SCRIPT>
</HEAD>
<BODY οnlοad="">
<input οnkeyup="a()"/>
</BODY>
</HTML>