How To Enable Writing to Status Bar (window.status) in Firefox
Another old school memory supplemental…
Why do we to enable windos.status?
Javascripts could to be a nightmare when you have something to debug . Firefox does have a few handy addons, like Firebug thats makes our lives easy and Also , the vote for the most popular debug technique in Javascript must go to “ALERT()” . Anywaz! There are few instances when adding ALERT do debug your mis-behaving Javascript is just isn’t a good idea. For example! you have dragble item whose position needs to be alerted …. NO NO! Dont do it! … you will just get infinite alerts or you wont be able actually drap your dragable. Well! There are more good situations, where you might writing out debug texts to the status bar, much more usful… Believe me! Its Experience!
IE by default left you write to the browser STATUS Bar using the syntax “window.status = ‘ something to debug’ “, but FireFox doesn’t . So to enable windows status change , you can do either of the following.
Open about:config in browser ( type “about:config“ this into the address bar ) and search for
dom.disable_window_status_change. Change it to false… just click on the entry to toggle its state.OR Alternatively
“Tools → Options → Content → Enable JavaScript / Advanced → Change status bar text“
And also note that … to write to the status bar in your Javascript, IE is just ok if you use a short syntax i.e. status =’ some debug text’ but in FireFox, you have to use in full syntax i.e. window.status = ‘ something to debug’
Subscribe to by Email
December 9th, 2010 at 11:30 am
Not working….
December 14th, 2010 at 7:20 pm
I’m using onmouseover=”window.status=’blah blah’…” and ditto with onmouseout.
dom.disable_window_status_change is set to false.
The onmouseover text is NOT displayed, but the onmouseout is.
Any idea what is going on here??
December 12th, 2011 at 12:50 pm
internet marketing…
[...]How To Enable Writing to Status Bar (window.status) in Firefox | Expressing IT[...]…