Placing Text in the Status Bar

30 October 2020, 3:22 pm by antelove



Happy Coding


index.html

/* ------------------------------------------------------------ */
/*  Javascript: change status                                   */
/*                                                              */
/*  Author: antelove                                            */
/*  Website: antelove.com                                       */
/* ------------------------------------------------------------ */

<!DOCTYPE html>
<html>

    <head>

    <title>Status Bar Changer</title>

    <script>

        function changeStatus()
        {
            window.status=prompt( "Enter some text for the status bar", "" );
        }

    </script>

    </head>

    <body>

        <h1>Status Bar Changer</h1>

        <p><a href="javascript:changeStatus()">Change Status</a></p>

    </body>

</html>

Thank for reading :)


Keywords:


Demo not yet
0 comment