views:

400

answers:

3

How can I change the text displayed in the status bar of a web browser using javascript?

jQuery can be used as well.

A: 

use

window.status = "whatever you want"

Damian
+5  A: 

jQuery is not necessary to do this:

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

However, most newer browsers prevent you from setting the text in the status bar from JavaScript.

Chris Ballance
but will not work in Firefox by default - https://developer.mozilla.org/En/DOM/Window.status
Russ Cam
Most newer browsers prevent you from setting the text in the status bar from JavaScript
Chris Ballance
@Chris - I'm betting the next question is likely to be how to do something like this cross-browser :)
Russ Cam
@Russ Cam,no,I'm gonna ask why SO gave up highlight the whole area of accepted answer?
Shore
+2  A: 

First of all, its appearence is not uniform throughout browsers, and secondly, that functionality has been disabled for a long time by default on most browsers for security reasons.

Anyway, the javascript for doing that is a simple window.status = "my text"

voyager