aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/globaleventhandlers/onfocus/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/api/globaleventhandlers/onfocus/index.html')
-rw-r--r--files/fr/web/api/globaleventhandlers/onfocus/index.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/files/fr/web/api/globaleventhandlers/onfocus/index.html b/files/fr/web/api/globaleventhandlers/onfocus/index.html
new file mode 100644
index 0000000000..98485a92d9
--- /dev/null
+++ b/files/fr/web/api/globaleventhandlers/onfocus/index.html
@@ -0,0 +1,21 @@
+---
+title: element.onfocus
+slug: Web/API/GlobalEventHandlers/onfocus
+tags:
+ - DOM
+ - DOM_0
+ - Référence_du_DOM_Gecko
+translation_of: Web/API/GlobalEventHandlers/onfocus
+---
+<p>{{ ApiRef() }}</p>
+<h3 id="R.C3.A9sum.C3.A9" name="R.C3.A9sum.C3.A9">Résumé</h3>
+<p>La propriété <b>onfocus</b> renvoie le gestionnaire de l'évènement <code>focus</code> pour l'élément courant.</p>
+<h3 id="Syntaxe" name="Syntaxe">Syntaxe</h3>
+<pre class="eval">code de gestion de l'évènement = element.onfocus
+</pre>
+<h3 id="Notes" name="Notes">Notes</h3>
+<p>L'évènement focus se déclenche lorsque l'utilisateur donne le focus clavier à l'élément donné.</p>
+<p>Contrairement à Microsoft Internet Explorer, dans lequel presque toutes les sortes d'éléments peuvent recevoir l'évènement focus, presqu'aucune sorte d'élément ne reçoit cet évènement dans les navigateurs utilisant Gecko.</p>
+<h3 id="Sp.C3.A9cification" name="Sp.C3.A9cification">Spécification</h3>
+<p>{{ DOM0() }}</p>
+<p>{{ languages( { "en": "en/DOM/element.onfocus" } ) }}</p>