这篇翻译不完整。请帮忙从英语翻译这篇文章

已废弃 Gecko 23 (Firefox 23 / Thunderbird 23 / SeaMonkey 2.20)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Summary

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

Syntax

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

Parameters

  • sMsg   是一个保存了状态栏默认显示文本的字符串.

Example

<html> 
 <body onload="window.defaultStatus='hello!';"/> 
  <button onclick="window.confirm('Are you sure you want to quit?');">confirm</button> 
 </body> 
</html>

Notes

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

Specification

HTML5

文档标签和贡献者

标签: 
 此页面的贡献者: webber007
 最后编辑者: webber007,