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/defaultstatus/index.html | 52 ++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 files/fr/web/api/window/defaultstatus/index.html (limited to 'files/fr/web/api/window/defaultstatus/index.html') diff --git a/files/fr/web/api/window/defaultstatus/index.html b/files/fr/web/api/window/defaultstatus/index.html new file mode 100644 index 0000000000..9a991ac4fb --- /dev/null +++ b/files/fr/web/api/window/defaultstatus/index.html @@ -0,0 +1,52 @@ +--- +title: Window.defaultStatus +slug: Web/API/Window/defaultStatus +tags: + - API + - HTML DOM + - NeedsCompatTable + - NeedsExample + - NeedsMarkupWork + - NeedsSpecTable + - Obsolete + - Propriété + - Reference + - Window +translation_of: Web/API/Window/defaultStatus +--- +

{{ obsolete_header(23) }}

+ +

{{ APIRef() }}

+ +

Résumé

+ +

Obtient / définit le texte de la barre d'état pour la fenêtre donnée.

+ +

Syntaxe

+ +
var sMsg = window.defaultStatus;
+window.defaultStatus = sMsg;
+
+ +

Paramètres

+ + + +

Exemple

+ +
<html>
+ <body onload="window.defaultStatus='salut!';"/>
+  <button onclick="window.confirm('Êtes-vous sûr de vouloir quitter?');">confirmer</button>
+ </body>
+</html>
+
+ +

Notes

+ +

Pour définir le statut une fois la fenêtre ouverte, utilisez {{domxref("window.status")}}.

+ +

Spécification

+ +

HTML5

-- cgit v1.2.3-54-g00ecf