Click here to Skip to main content
13,193,393 members (55,484 online)
Click here to Skip to main content
Add your own
alternative version


36 bookmarked
Posted 4 Nov 2001

Using JavaScript to write to the status bar

, 4 Nov 2001
Rate this:
Please Sign up or sign in to vote.
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.


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:

function writetostatus(input){
    return true

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

<a href="" onMouseover="writetostatus('Search the web!')"


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


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.


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
United States United States
No Biography provided

You may also be interested in...


Comments and Discussions

QuestionIt only works in Opera Pin
Jayme Jeffman11-Feb-14 8:07
memberJayme Jeffman11-Feb-14 8:07 
GeneralMy vote of 1 Pin
ykorotia6-Dec-08 5:18
memberykorotia6-Dec-08 5:18 
GeneralSome Good Resources Pin
Anonymous19-Aug-05 17:32
sussAnonymous19-Aug-05 17:32 
:-Djavascript The Definitive Guide

JavaScript & DHTML Cookbook

javascript The Complete Reference, Second Edition[^]

Beginning JavaScript Second Edition


and much more in

[Reply][View Thread][Get Link]

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.171017.2 | Last Updated 5 Nov 2001
Article Copyright 2001 by Andy Scott
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid