worked great !!!

thanks.



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 2:14 PM
To: CF-Talk
Subject: Re: Javascript: onKeydown event


http://developer.irt.org/script/1214.htm

----- Original Message -----
From: Thanh Nguyen <[EMAIL PROTECTED]>
Date: Thursday, April 18, 2002 2:39 pm
Subject: Javascript: onKeydown event

> Hi all, 
> 
> Anybody know if Netscape 4.X support onKeydown event? 
> 
> I have the following script, It works in IE and Netscape 6.2 but 
> it doesn't
> seem to work in Netscape 4.7
> 
> <script language="JavaScript"><!--
> function handler(e) {
>     var key = (navigator.appName == "Netscape") ? e.which : 
> e.keyCode;     if (key == 13 || key == 46 || (key > 47 && key < 
> 58)) return true; else
> return false;
> }
> //--></script>
> 
> 
> <form>
> <input type="text" onKeyDown="return handler(event)" onKeydown="return
> handler(event)">
> </form> 
> 
> Any Ideas why it doesn't work?
> 
> 
> Thanks
> 
> 

______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to