Window statusProperty

Window 对象参考手册Window Object

Definition and Usage

The status property sets or returns the text in the window's status bar.

Syntax

window.status


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Note:The status property does not work properly in IE, Firefox, Chrome, and Safari by default. To allow scripts to change the status bar text, the user must set the configuration screen preference dom.disable_window_status_change to false. (Or in Firefox: "Tools - Options - Content - Enable JavaScript / 'Advanced' - Allow scripts to change status bar text").


Example

Example

Set the text in the status bar:

<script>
window.status="Some text in the status bar!";
</script>

Try it Yourself »


Window 对象参考手册Window Object Other Extensions