THE WORLD'S LARGEST WEB DEVELOPER SITE

Window status Property

❮ Window Object

Example

Set the text in the status bar:

window.status = "Some text in the status bar!!";
Try it Yourself »

Definition and Usage

The status property sets the text in the status bar at the bottom of the browser, or returns the previously set text.

Note: Do not confuse this property with the defaultStatus property, which specifies the default text displayed in the status bar.

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


Browser Support

Property
status Not supported Not supported Not supported Not supported Not supported

Note: Opera 12 and earlier supports this property. However, support was removed in version 15.


Syntax

window.status

Technical Details

Return Value: A String, representing the text displayed in the status bar

❮ Window Object