Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assign status bar text to a variable?

Status
Not open for further replies.

mattscotney

Programmer
Jul 31, 2002
57
AU
Hi all,

How do I assign the status bar text to a variable?

I tried the logical way but it does not work:
x = window.status;
alert(x);


Any help would be greatly appreciated.

nb: I am not after a method to change the status bar text.

Thanks in advance,
Matt Scotney
 
I believe that your problem is that you are not reading the default status. Both window.status and window.defaultStatus are supposed to be read/write. I wasn't able to "read" a value unless I'd set it earlier by writing it.

<script>
window.status = &quot;Hi&quot;
function checkStatus(){
x = window.status;
alert(x);
}
</script>
<body onLoad=&quot;checkStatus()&quot;> Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048
Tek-Tips Best Practices: FAQ183-3179
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top