JavaScript - Set Customize Text in Browser Status Bar using JavaScript Function

In this example, we will learn how to set/display text in a status bar of a browser.

window.status is used to set the text on the status bar. Remember Status Bar should be visible, if it is not visible make it visible through View → Toolbars → Status Bar.

Set Customize Text in Browser Status Bar using JavaScript function

JavaScript function:

<script type="text/javascript">
    function setStatus() {
        window.status = "Example from includehelp.com";
    }
</script>

HTML Source Code with JavaScript:

<!--JavaScript - Set Customize Text in Browser's Status Bar using JavaScript Function.-->
<html>
    <head>
        <title>JavaScript - Set Customize Text in Browser's Status Bar using JavaScript Function.</title>
        <script type="text/javascript">
            function setStatus() {
                window.status = "Example from includehelp.com";
            }
        </script>
    </head>

    <body onload="setStatus()" style="text-align: center;">
        <h1>JavaScript - Set Customize Text in Browser's Status Bar using JavaScript Function.</h1>
    </body>
</html>

Result:

set text on status bar using javascript function

JavaScript Examples »



Related Examples



All JavaScript Examples

Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.