From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/fr/web/api/window/focus/index.html | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 files/fr/web/api/window/focus/index.html (limited to 'files/fr/web/api/window/focus') 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 +--- +

{{APIRef}}

+ +

Résumé

+ +

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.

+ +

Syntaxe

+ +
window.focus()
+
+ +

Exemple

+ +
if (clicked) { window.focus(); }
+
+ +

Spécification

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG','interaction.html#dom-window-focus','Window.focus()')}}{{Spec2('HTML WHATWG')}} 
+ +

{{ languages( { "ja": "ja/DOM/window.focus", "pl": "pl/DOM/window.focus" } ) }}

-- cgit v1.2.3-54-g00ecf