diff options
Diffstat (limited to 'files/zh-cn/web/api/window/defaultstatus/index.html')
| -rw-r--r-- | files/zh-cn/web/api/window/defaultstatus/index.html | 44 |
1 files changed, 44 insertions, 0 deletions
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 +--- +<p>{{ obsolete_header(23) }}</p> + +<p>{{ APIRef() }}</p> + +<h2 id="Summary" name="Summary">Summary</h2> + +<p>获取或设置给定窗口的状态栏文本。</p> + +<h2 id="Syntax" name="Syntax">Syntax</h2> + +<pre class="eval"><em>var sMsg</em> = window.defaultStatus; +window.defaultStatus = <em>sMsg;</em> +</pre> + +<h3 id="Parameters" name="Parameters">Parameters</h3> + +<ul> + <li><code>sMsg</code> 是一个保存了状态栏默认显示文本的字符串.</li> +</ul> + +<h2 id="Example" name="Example">Example</h2> + +<pre><html> + <body onload="window.defaultStatus='hello!';"/> + <button onclick="window.confirm('你确定要退出?');">confirm</button> + </body> +</html> +</pre> + +<h2 id="Notes" name="Notes">Notes</h2> + +<p>页面HTML加载完成后要设置状态栏内容可以使用 <a href="/en/Gecko_DOM_Reference/window/status" title="en/Gecko_DOM_Reference/window/status">window.status</a>.</p> + +<h2 id="Specification" name="Specification">Specification</h2> + +<p>HTML5</p> |
