Hi,

I have the following JS:

var event = window.event;
if (event.keyCode == 38) {  
    //do something      
}

However, I keep getting the following error - TypeError: event is undefined
This happens only on Firefox, for all other browsers this works fine.

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.