Javascript Change Window.Status Bar

by top54u.com 20 May, 2008
Spotlight.....

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.

Spotlight.....

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , ,

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

7/24/2008 5:27:33 PM

OUR SPONSORS[+ advertise here]
top54u ezines.....
related videos.....
recent posts.....