Is there any reason you have two onKeyDown events, or is that just a typo?
If that is the case (that you have two), NN 6.x and IE are very forgiving
when having duplicate attributes, however NN 4.x might be crapping out
because of this. HTH

+--------------------------+---------------------------+
| SCOTT VAN VLIET          | SBC SERVICES, INC.        |
| Senior Analyst           | ITO Enterprise Tools      |
| Tel: 858.886.3878        | 7337 Trade St. Room 4000  |
| Pgr: 858.536.0070        | San Diego, CA 92121       |
| Email: [EMAIL PROTECTED]    | http://www.sbc.com        |
+--------------------------+---------------------------+ 


-----Original Message-----
From: Thanh Nguyen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 1:39 PM
To: CF-Talk
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


______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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