blob: 947dae79d8a5c657d9e7ed05143098949e49538d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
---
title: oncommand
slug: Archive/Mozilla/XUL/Attributs/oncommand
tags:
- Attributs_XUL
- Référence_XUL
translation_of: Archive/Mozilla/XUL/Attribute/oncommand
---
<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-oncommand"><a href="https://developer.mozilla.org/fr/docs/Mozilla/Tech/XUL/Attributs/oncommand">oncommand</a></code>
</dt><dd> Type : <i>code de script</i>
</dd><dd> Ce gestionnaire d'évènement est appelé lorsque la commande est activée. Cela se produit quand un utilisateur sélectionne un élément de menu ou active un raccourci clavier attaché à la commande.
</dd></dl>
<div class="noinclude">
<h4 id="Exemple" name="Exemple"> Exemple </h4>
<pre><button label="Cliquez ici" oncommand="alert('Salut')"/>
</pre>
<h4 id="Voir_.C3.A9galement" name="Voir_.C3.A9galement"> Voir également </h4>
<p>L'élément <code><code><a href="/fr/docs/Mozilla/Tech/XUL/command" title="command">command</a></code></code>.
</p>
</div>
|