RE: [PHP-ES] OFF TOPIC javascript :Captura de teclas
| From: | Ramón Riba | Date: | Wed, 28 Feb 2001 19:34:05 +0000 |
| Subject: | RE: [PHP-ES] OFF TOPIC javascript :Captura de teclas | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-7586@lists.php.net to get a copy of this message | ||
Perdonad lo del alert, se me ha escapado.
----- Original Message -----
From: Ramón Riba <rriba@humiclima.com>
To: <lista@phpes.com>
Sent: Wednesday, February 28, 2001 8:14 PM
Subject: [PHP-ES] OFF TOPIC javascript :Captura de teclas
> Alguno de vosotros sabe como pueden capturarse en javascript las teclas de
> función y las de página arriba y abajo? yo hago esto pero no me las
captura:
> function updateMe(e)
> {
> if (document.layers)
> keyPressed = String.fromCharCode(e.which);
> else if (document.all)
> keyPressed = String.fromCharCode(window.event.keyCode);
>
> alert("puta");
> }
>
> if (window.document.captureEvents!=null)
> window.document.captureEvents(Event.KEYPRESS)
> window.document.onkeypress = updateMe;
>
> Gracias.
>
>
> ---------------------------------------------------------------------
> Archivo On-line: http://www.phpes.com/
> Manual PHP en español: http://www.php.net/manual/es/
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com
>
>