JavaScript Program to Show text message on status bar

Write a JavaScript program to show text message on status bar.



Source Code
<html>
<head>
    <title>Show text message on status bar</title>
    <script>
    function showStatus()
    {
        var win = window.open('', 'win', 'width=100, height=100, status=1, resizable=1');
        win.status = 'Hello';
    }
    </script>
</head>
<body onload="showStatus()">
<h1>This is an example of Status bar</h1>
</body>
</html>
Output