By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

Writing to the status bar

P: 58
Hi folks,

This should be trivial, but I'm relatively new to web programming...

I'm using Javascript to write to the IE6 status bar with the rather straightforward script:

Expand|Select|Wrap|Line Numbers
  1. <script>
  2.     window.status="this is the status bar!";
  3. </script>
My problem is that every time I load the page, my message displays for only a second or two and this "Done" is displayed. How can I get my message to stick on the status bar?

May 5 '08 #1
Share this Question
Share on Google+
5 Replies

Expert 100+
P: 1,654
Try this...[HTML]<body onload="window.status='this is the status bar!';">[/HTML]

window.status is a non standard thing, so I am not sure if it would work.
May 5 '08 #2

Expert Mod 15k+
P: 16,027
Note that not all browsers let you set the status bar message. In Firefox, this is disabled by default.
May 6 '08 #3

P: 58

Thanks, but the onload event only sets the status bar on the load. I need to set it dynamically via javascript, depending upon user actions. I can do this, but the last thing IE is doing is putting "Done" on the status bar, overwriting whatever I've put there with my code. So your suggestion doesn't really solve my problem. (But thanks anyway!)

As for FireFox... It's not a big deal, really. This is for a website only to be used internally by my company, and our IT group only supports IE6. (Sucks, I know, but it is what it is.)

BTW, I should add that I'm using ASP.NET to develop this application. I don't know if that could be a factor.

May 7 '08 #4

P: 58
Ah! I solved my own problem (I think).

Rather than setting the "window.default" value, I set the "window.defaultStatus" value. I'm not so sure what the repercussions are of setting the default status message, though, so we shall see.

I never did figure out where the "Done" was coming from. Several sources seemed to indicate it was Google Toolbar, which I have installed. I uninstalled it, but the problem of the "Done" persisted.

Thanks for reading and thanks for the help.

May 7 '08 #5

Expert Mod 15k+
P: 16,027
It may be that return true is required. The following example should work:
[html]<div onmouseover="window.status='Moused over'; return true;" onmouseout="window.status='Moused out'; return true;">Some text</div>[/html]
May 7 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.