List Info

Thread: Read Status bar text




Read Status bar text
user name
2006-04-20 16:09:01
Hi:

I am trying to read the status bar text like
"Downloading http://..."
appears when an image or sound file is being downloaded,
which I use to
detect that a file is being downloaded and
"Done" to detect completion.
The following does not work. Can some one suggest me an idea
to do
this.

var stattext = window.status
alert(stattext); //this display empty string
if (sttext.indexOf("Download") >= 0) {
	//some code
}

//This only work if you assign a text to status bar, and
then read it

stattext = "Any Text";
alert(window.status); //display "Any Text"


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Informationgooglegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
-~----------~----~----~----~------~----~------~--~---

Read Status bar text
user name
2006-04-23 03:42:46
You can't tell when the browser changes the status line...
the only
thing you can read from it is stuff you write to it. This is
a security
matter, so you can't read (for instance) the
"Connecting to
http://yourcompetitor.co
m..." when a user leaves your site.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Informationgooglegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )