blob: 47aea49ff5a29b66887dade163725bab4befc78b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
---
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() }}
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
- `sMsg` est une chaîne contenant le texte à afficher par défaut dans la barre d'état.
## 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
|