Search w3schools.com:

SHARE THIS PAGE

Window defaultStatus Property

Window Object Reference Window Object

Definition and Usage

The defaultStatus property sets or returns the default text in the status bar at the bottom of the browser (the text will be displayed when the page loads).

Syntax

window.defaultStatus


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

Note: The defaultStatus property does not work in the default configuration of IE, Firefox, Chrome, or Safari. 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").


Example

Example

Set a default text in the status bar:

<html>
<body>

<script>
window.defaultStatus="This is the default text in the status bar!!"
</script>

</body>
</html>

Try it yourself »


Window Object Reference Window Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]