...

View Full Version : even.keyCode=9 tab event donsent work in FireFox



nasir872
05-17-2007, 12:46 PM
I am having trouble in calling tab event using my own function.
i call tab event using
event.keyCode = 9;
but firefox gives this error "Error: event is not defined".

What to do? plz help.

glenngv
05-17-2007, 04:27 PM
You have to pass the event object to the function. That's the cross-browser way to do it.

function fKeydown(evt){
alert(evt.keyCode);
}

<input type="text" onkeydown="fKeydown(event)" />



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum