Closed Bug 90105 Opened 23 years ago Closed 23 years ago

The window status set with window.status='xyz' on page load is not shown

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: phil, Assigned: bugzilla)

References

()

Details

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.2) Gecko/20010628
BuildID:    2001062815

The window status set with window.status='xyz' is not shown

Reproducible: Always
Steps to Reproduce:
goto http://www.goli.at/phil/mozilla/bugs.html
the javascript tries to set window.status

IE and Netscape 4.7 display it at least ...
What seems to be happening is that window.status is set, only to be wiped away
by Mozilla's own "Document: Done" message when the page finishes loading.

Try setting window.status in the body's onload handler to see the difference...
changed my bug-page to <body onLoad= ... - doesn't work either - check out: 
http://www.goli.at/phil/mozilla/bugs.html
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows NT → All
Hardware: PC → All
Summary: The window status set with window.status='xyz' is not shown → The window status set with window.status='xyz' on page load is not shown
er darn something broke window.status or something, at least in my (admittedly
old) build 2001061520. See attached testcase, it doesn't work for me. (win2k)
window.status is changed correctly but is not displayed. argh.
For reference, the behaviour on NS4.x on unix is that the text is set in the
status bar (and it shows in the dialog that pops up), and gets wiped out as soon
as you move your mouse.
Blake, my hero :-), agreed to look at this problem. Reassigning.
Assignee: jst → blake
*** Bug 91449 has been marked as a duplicate of this bug. ***
there is an important difference between bug 91449 and this one: After clicking 
a javascript link which calls 

function setStatus(){
  setInterval("window.status=new Date;",100);
}

the date will never appear in the status bar. The status bar is blocked. However 
it works fine if that function is called from onload. So there is a further 
problem with links, I think.
Target Milestone: --- → Future
This works for me now; anyone else?
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Well actually if you want the text to _stay_ in the statusbar you should use
window.defaultStatus and not window.status , as window.status is temporary text
and it disappears on next update of window.status (either "loading..." or
hovering a link, etc.)
[and especially on page load the statusbar text is updatedvery frequently]

so try smth like this:
<body onLoad="window.defaultStatus='hello world';return true;">

this worksforme...
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: