No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Référence HTML : disabled

L'attribut disabled

  • Type : ()
  • Valeur par défaut : #IMPLIED

Description de l'attribut disabled

Nous pouvons utiliser l'attribut disabled pour spécifier que l'élément du formulaire est désactivé.

Quand nous spécifions cet attribut, les effets sur l'élément sont les suivants :
  • les commandes inactives ne reçoivent pas l'attention (focus).
  • les commandes inactives sont sautées au cours d'une navigation par tabulation.
  • les commandes inactives ne peuvent pas aboutir.


Cet attribut est hérité mais les déclarations locales surclassent la valeur héritée.

Selon le navigateur, nous pouvons remarquer des différences dans la manière dont les éléments inactifs sont restitutés. Par exemple, certains navigateurs restituent en "grisé" les articles de menu, les labels de bouton, etc. qui sont inactifs.

Nous ne pouvons modifier dynamiquement cet attribut qu'au moyen d'un script.

Eléments qui peuvent utiliser cet attribut :

| button | input | optgroup | option | select | textarea |

Liste des attributs et évènements


Liste des balises

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 14/08/2006, last modified the 29/07/2022
Source of the printed document:https://www.gaudry.be/en/xhtml-rf-attribut/disabled.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.