[ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
Javascript code for attaching an onkeydown listener to textarea and text input elements to prevent loss of data when the user hits the ESC key. $Horde: horde/js/ieEscGuard.js,v 1.1.2.3 2005/10/18 11:33:38 jan Exp $
Poids: | 55 lignes (2 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
guard() X-Ref |
Finds all text inputs (input type="text") and textarea tags, and attaches the onkeydown listener to them to avoid ESC clearing the text. |
disableEscape() X-Ref |
Returns false if the user hit the ESC key, preventing IE from blanking the field. Otherwise returns true. return boolean Whether or not to allow the key event. |
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |