blob: e240ec9f158b30e0f0fa14ac6ecaabc2b3989edc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
---
title: command
slug: Archive/Mozilla/XUL/Attributs/command
tags:
- Attributs_XUL
- Référence_XUL
translation_of: Archive/Mozilla/XUL/Attribute/command
---
<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-command"><a href="https://developer.mozilla.org/fr/docs/Mozilla/Tech/XUL/Attributs/command">command</a></code>
</dt><dd> Type : <i>id d'élément</i>
</dd><dd> Défini à la valeur de l'<code id="a-id"><a href="https://developer.mozilla.org/fr/docs/Mozilla/Tech/XUL/Attributs/id">id</a></code> d'un élément <code><a href="/fr/docs/Mozilla/Tech/XUL/command" title="command">command</a></code> observé par l'élément.
</dd></dl>
<div class="noinclude">
<h3 id="Exemple" name="Exemple"> Exemple </h3>
<pre><command id="cmd_openhelp" oncommand="alert('Aide');"/>
<button label="Aide" command="cmd_openhelp"/>
<button label="Plus d'aide" command="cmd_openhelp"/>
</pre>
<h3 id="Voir_.C3.A9galement" name="Voir_.C3.A9galement"> Voir également </h3>
<p>L'élément <code><code><a href="/fr/docs/Mozilla/Tech/XUL/command" title="command">command</a></code></code>, l'attribut <code><code id="a-oncommand"><a href="https://developer.mozilla.org/fr/docs/Mozilla/Tech/XUL/Attributs/oncommand">oncommand</a></code></code> et l'élément <code><code><a href="/fr/docs/Mozilla/Tech/XUL/commandset" title="commandset">commandset</a></code></code>.
</p>
</div>
|