[ Index ]
 

Code source de IMP H3 (4.1.5)

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/js/ -> ieEscGuard.js (sommaire)

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: imp/js/ieEscGuard.js,v 1.1.2.3 2005/10/18 12:13:30 jan Exp $

Poids: 55 lignes (2 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 fonctions

  guard()
  disableEscape()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

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 : Thu Nov 29 12:30:07 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics