diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/fr/web/api/window/focus | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/fr/web/api/window/focus')
-rw-r--r-- | files/fr/web/api/window/focus/index.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/files/fr/web/api/window/focus/index.html b/files/fr/web/api/window/focus/index.html new file mode 100644 index 0000000000..51d55e804a --- /dev/null +++ b/files/fr/web/api/window/focus/index.html @@ -0,0 +1,39 @@ +--- +title: Window.focus() +slug: Web/API/Window/focus +translation_of: Web/API/Window/focus +--- +<p>{{APIRef}}</p> + +<h2 id="Résumé">Résumé</h2> + +<p>Demande la mise au premier plan de la fenêtre. Cet appel peut échouer en fonction des réglages utilisateurs, et ne garantit pas que la fenêtre sera au-dessus des autres au retour de cette méthode.</p> + +<h2 id="Syntaxe">Syntaxe</h2> + +<pre class="eval">window.focus() +</pre> + +<h2 id="Example" name="Example">Exemple</h2> + +<pre class="eval">if (clicked) { window.focus(); } +</pre> + +<h2 id="Specification" name="Specification">Spécification</h2> + +<table class="spectable standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('HTML WHATWG','interaction.html#dom-window-focus','Window.focus()')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td> </td> + </tr> + </tbody> +</table> + +<p>{{ languages( { "ja": "ja/DOM/window.focus", "pl": "pl/DOM/window.focus" } ) }}</p> |