aboutsummaryrefslogtreecommitdiff
path: root/files/fr/archive/mozilla/xul/attributs/label
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/archive/mozilla/xul/attributs/label')
-rw-r--r--files/fr/archive/mozilla/xul/attributs/label/index.html33
1 files changed, 33 insertions, 0 deletions
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
+---
+<div class="noinclude"><span class="breadcrumbs xulRefAttr_breadcrumbs">« <a href="/fr/docs/R%C3%A9f%C3%A9rence_XUL">Accueil de la référence XUL</a></span></div>
+<dl><dt> <code id="a-label"><a href="https://developer.mozilla.org/fr/docs/Mozilla/Tech/XUL/Attributs/label">label</a></code>
+</dt><dd> Type : <i>chaîne de caractères</i>
+</dd><dd> Le label qui apparaîtra sur l'élément. S'il n'est pas spécifié, aucun texte n'apparaîtra.
+</dd></dl>
+<div class="noinclude">
+<h3 id="Voir_.C3.A9galement" name="Voir_.C3.A9galement"> Voir également </h3>
+<ul><li> <a href="fr/XUL/Attributs/treeitem.label">treeitem.label</a>, élément <code><a href="fr/XUL/label">&lt;label&gt;</a></code>
+</li></ul>
+<h4 id="Exemples_en_JavaScript" name="Exemples_en_JavaScript">Exemples en JavaScript</h4>
+<pre>&lt;label value="Whaw" id="the-big-label" command="the-big-button"/&gt;
+&lt;button id="the-big-button" label="Cliquez ici"
+ oncommand="alert(document.getElementById('the-big-label').value)"/&gt;
+
+&lt;label id="myLabel" value="Mon label"/&gt;
+&lt;button label="Cliquez ici"
+ oncommand="document.getElementById('myLabel').setAttribute('value','Valeur modifiée');" /&gt;
+
+&lt;checkbox label="ma case à cocher" id="myCheckboX"/&gt;
+&lt;button label="Un autre clic"
+ oncommand="document.getElementById('myCheckboX').setAttribute('label','Toujours pas cochée');"/&gt;
+&lt;button label="Afficher le label de la checkbox"
+ oncommand="alert( document.getElementById('myCheckboX').getAttribute('label') )"/&gt;
+</pre>
+</div>