daveyand wrote:
hey,
I know in the new browsers you're not able to change the value of the
status bar. Which is fair enough, i understand why and agree.
Although, i cant seem to get the value of the status bar. One used to
be able to do window.status.
But that doesnt seem to work. Wondered if someone could point me in
the right direction.
Cheers!
Other than when you hover the cursor over a link, the only text in the
status bar, should be the text that you have placed there using your
script. Perhaps you should consider keeping track of what values are in
the status bar by designing a simple object/function that can represent
your status bar?
Something like this might work, although I haven't tested it. I am sure
you can see what i am getting at, however.
<---------- CODE START ---------->
<html>
<head></head>
<body onload="doStuff ();">
<script type="text/javascript">
function statusBar()
{
var sbText;
this.set = function(status Text)
{
sbText = statusText;
window.status = sbText
}
this.get = function()
{
return sbText;
}
}
var sb = new statusBar();
function doStuff()
{
sb.set('Some text');
alert("Status Bar text: " + sb.get());
sb.set('Some different text');
alert("New Status Bar text: " + sb.get());
}
</script>
</body>
<----------- CODE END ---------->