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: -
<script>
-
window.status="this is the status bar!";
-
</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?
Robert
5 1546
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.
Note that not all browsers let you set the status bar message. In Firefox, this is disabled by default.
Hello,
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.
Robert
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.
Robert
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]
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Mathew |
last post by:
I am looking to write a program with Microsoft Visual Basic 6 that
writes out to the com port. After the inital Connection. I will be
connecting at 9600, 8 data bits, with hardware flow control. ...
|
by: phantom |
last post by:
Hi All.
I am having a problem writing to a file. I can successfully open the
file and write the contents using fprintf, however if the writing is
not done for a while in the process the file...
|
by: Jason Curl |
last post by:
Dear C group,
I'm very interested in writing portable C, but I only have GNU, Sparc
and Cygwin to compile on.
What I find is the biggest problem to writing portable C is what headers
to...
|
by: JP |
last post by:
I'm sure this is a simple question and I'm overlooking the obvious. But, I
have two seperate classes (in seperate files) under the same namespace. I
am calling a method in one class that contains...
|
by: JP |
last post by:
Okay - I have incorporated some of the advise I got on the first post and
have gone ahead and setup a simple test project to demonstrate the trouble I
am having. Any help is GREATLY appreciated:
...
|
by: jay.dow |
last post by:
I want to write to the pins of an RS232 without using the serial
protocol. The use would be every pin could act to complete a circuit
in customized hardware. I could use python to communicate...
|
by: mojtaba_danai |
last post by:
Hi
Hope that some one can help with the following. I wish to write a
Visual C++ program, which monitors 3-4 other services (process/programs
also written in VC++).
The program shall monitor, if...
|
by: ajayvaram |
last post by:
Hi all,
Im facing to write some XPATHs,
My XML file as like as bellow..
<Plan...>
.....
- <InvestmentAccount Id="InvestmentAccount01" Type="Post97NonPR"
...
|
by: ajayvaram |
last post by:
Hi all,
Im facing to write some XPATHs,
My XML file as like as bellow..
<Plan...>
.....
- <InvestmentAccount Id="InvestmentAccount01" Type="Post97NonPR" ...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |