Latest web development tutorials

Window defaultStatus property

Window Object Reference Window object

Definition and Usage

defaultStatus property sets or returns the default text window status bar. This property is readable and writable.

The text will be displayed when the page loads.

grammar

window.defaultStatus


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Note: defaultStatus properties in IE, Firefox, Chrome, Safari and the default configuration is not working properly.To allow the scripts to change the status bar text, the user must configure the Screen preference to false dom.disable_window_status_change. (Or in Firefox: "Tools - Options - Content - enabled JavaScript /" Advanced "- Allow scripts to change the status bar text").


Examples

Examples

In the status bar to set a default text:

<html>
<body>

<script>
window.defaultStatus="这是默认状态栏文本! !";
</script>

</body>
</html>

try it"


Window Object Reference Window object