In IE4  and up event.keyCode(13) is the enter key

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, April 20, 2001 12:45 PM
Subject: Re: OT Javascript question


>
> i know there is in NS but i'm not sure about IE
>
> in NS you can enable event capturing and inherent to that is the type of
> event.  i.e., a key stroke and the key depressed
> see developer.netscape.com for more on this
>
> <script>
> document.captureEvents(ONKEYPRESS);
>
> function myHandler(e){ //where e is the event type
> return e.type;
> }
>
> document.onkeypress=myHandler;
> </script>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to