You can change the window status bar text messages of web browsers using javascript code. In Javascript there is a DOM object window that represents the browser window displaying the web page. This window object has a property status that allows changing the text of window status bar.

Status property of window object accepts the string message that sets the text in the status bar of a window.

Javascript is a case sensitive language, so remember to use status property in lower case.

JavaScript code to change window status

<html>
<head>
    <title>JavaScript Change Window Status</title>
    <script language="javascript" type="text/javascript">
        function pageLoad() {
            window.status = 'JavaScript Tutorial to change window status';
        }
    </script>
</head>
<body onload="pageLoad();">

</body>
</html>

To change the window status text you have to create a javascript function like pageLoad() function in above example. Call that function onload event of html body.

Continue to next tutorial: Javascript onmouseover Set Window Status to learn how to change the status bar text onmouseover event.

Recent JavaScript Tutorials

Javascript FSO ShortPath property

Javascript FileSystemObject (FSO) provides a ShortPath property that can be accessed using the folder object or file object returned by the GetFolder or GetFile method.

Javascript FSO Path Property

Javascript FileSystemObject (FSO) provides the Path property that can be accessed through the file object or folder object returned by the GetFile or GelFolder method

Javascript FSO Type property

Javascript FileSystemObject (FSO) provides a Type property that can be accessed through file object or folder object returned by the GetFile or GetFolder method

Javascript FSO ShortName property

Javascript FileSystemObject (FSO) provides a ShortName property that can be accessed using the folder object or file object returned by the GetFolder or GetFile method.

Javascript FSO Name Property

Javascript FileSystemObject (FSO) provides a Name property that can be accessed using file object or folder object.