From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../zh-cn/web/api/window/defaultstatus/index.html | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 files/zh-cn/web/api/window/defaultstatus/index.html (limited to 'files/zh-cn/web/api/window/defaultstatus') diff --git a/files/zh-cn/web/api/window/defaultstatus/index.html b/files/zh-cn/web/api/window/defaultstatus/index.html new file mode 100644 index 0000000000..97e48af30e --- /dev/null +++ b/files/zh-cn/web/api/window/defaultstatus/index.html @@ -0,0 +1,44 @@ +--- +title: Window.defaultStatus +slug: Web/API/Window/defaultStatus +tags: + - HTML DOM对象 + - 接口 +translation_of: Web/API/Window/defaultStatus +--- +

{{ obsolete_header(23) }}

+ +

{{ APIRef() }}

+ +

Summary

+ +

获取或设置给定窗口的状态栏文本。

+ +

Syntax

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

Parameters

+ + + +

Example

+ +
<html>
+ <body onload="window.defaultStatus='hello!';"/>
+  <button onclick="window.confirm('你确定要退出?');">confirm</button>
+ </body>
+</html>
+
+ +

Notes

+ +

页面HTML加载完成后要设置状态栏内容可以使用  window.status.

+ +

Specification

+ +

HTML5

-- cgit v1.2.3-54-g00ecf