From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../archive/mozilla/xul/attributs/label/index.html | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 files/fr/archive/mozilla/xul/attributs/label/index.html (limited to 'files/fr/archive/mozilla/xul/attributs/label') diff --git a/files/fr/archive/mozilla/xul/attributs/label/index.html b/files/fr/archive/mozilla/xul/attributs/label/index.html new file mode 100644 index 0000000000..afe9b0ed31 --- /dev/null +++ b/files/fr/archive/mozilla/xul/attributs/label/index.html @@ -0,0 +1,33 @@ +--- +title: label +slug: Archive/Mozilla/XUL/Attributs/label +tags: + - Attributs_XUL + - Référence_XUL +translation_of: Archive/Mozilla/XUL/Attribute/label +--- +
« Accueil de la référence XUL
+
label +
Type : chaîne de caractères +
Le label qui apparaîtra sur l'élément. S'il n'est pas spécifié, aucun texte n'apparaîtra. +
+
+

Voir également

+ +

Exemples en JavaScript

+
<label value="Whaw" id="the-big-label" command="the-big-button"/>
+<button id="the-big-button" label="Cliquez ici"
+	oncommand="alert(document.getElementById('the-big-label').value)"/>
+
+<label id="myLabel" value="Mon label"/>
+<button label="Cliquez ici"
+	oncommand="document.getElementById('myLabel').setAttribute('value','Valeur modifiée');" />
+
+<checkbox label="ma case à cocher" id="myCheckboX"/>
+<button label="Un autre clic"
+	oncommand="document.getElementById('myCheckboX').setAttribute('label','Toujours pas cochée');"/>
+<button label="Afficher le label de la checkbox"
+	oncommand="alert( document.getElementById('myCheckboX').getAttribute('label') )"/>
+
+
-- cgit v1.2.3-54-g00ecf