Window.status

您正在阅读此内容的英文版本,因为该语系尚未翻译。 帮助我们翻译此文章吧!

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

This property does not work in default configuration of Firefox and some other browsers: setting window.status has no effect on the text displayed in the status bar. To allow scripts to change the the status bar text, the user must set the dom.disable_window_status_change preference to false in the about:config screen.

Note: Starting in Gecko 1.9.1, users can let websites change the status text by enabling the "Change status bar" preference in the Advanced options panel.

Syntax

window.status = string;
var value = window.status;

Specification

HTML5

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
statusChrome Full support YesEdge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown