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-Information googlegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
-~----------~----~----~----~------~----~------~--~---
|