Click here to Skip to main content
6,631,889 members and growing! (16,280 online)
Email Password   helpLost your password?
Web Development » Client side scripting » Beginners     Beginner

Using JavaScript to write to the status bar

By Andy Scott

Some of the simpliest effects in JavaScript are also the most useful, in my opinion. One example is using JavaScript to write something to the status bar.
JavascriptWin2K, WinXP, Dev
Posted:4 Nov 2001
Views:83,725
Bookmarked:29 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
19 votes for this article.
Popularity: 4.00 Rating: 3.13 out of 5
2 votes, 13.3%
1
1 vote, 6.7%
2
4 votes, 26.7%
3
6 votes, 40.0%
4
2 votes, 13.3%
5

Introduction

Some of the simplest effects in JavaScript are also the most useful, in my opinion. One example is using JavaScript to write something to the status bar. The status bar is a lonely, empty place just waiting for you to take advantage of. You can use it to display a description of the link your mouse is currently over, show some message etc.

To write to the status bar, use the JavaScript function:

<script>
function writetostatus(input){
    window.status=input
    return true
}
</script>

For example, I create a link below that uses this function to a description of the link onmouse over:

<a href="http://www.google.com" onMouseover="writetostatus('Search the web!')"
onMouseout="writetostatus('')">Google</a>

I like this example by Website Abstraction, which gets really creative and "unscrambles" the message into view.

Conclusion

The key to writing to the status is using the property window.status, and remembering to return true if you're adding it to a function.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Andy Scott


Member

Location: United States United States

Other popular Client side scripting articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 2 of 2 (Total in Forum: 2) (Refresh)FirstPrevNext
GeneralMy vote of 1 Pinmemberykorotia6:18 6 Dec '08  
GeneralSome Good Resources PinsussAnonymous18:32 19 Aug '05  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 4 Nov 2001
Editor: Nishant Sivakumar
Copyright 2001 by Andy Scott
Everything else Copyright © CodeProject, 1999-2009
Web11 | Advertise on the Code Project