W3Schools.com

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 type="text/javascript">
window.defaultStatus="This is the default text in the status bar!!"
</script>

</body>
</html>

Try it yourself »


Window Object Reference Window Object
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$7.95/mo SEO Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Free Website Templates Free CSS Templates
Make Your Own Website
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE