Closed
Bug 96926
Opened 24 years ago
Closed 24 years ago
onLoad fired before document has finished loading
Categories
(Core :: DOM: Events, defect)
Tracking
()
People
(Reporter: jason, Assigned: joki)
Details
Attachments
(1 file)
|
1.59 KB,
application/octet-stream
|
Details |
Under mozilla 0.9.3 it appears that my document.body.onLoad event handler is
being called well before the document has loaded. As I understand it, the
onLoad event should not be fired until the entire page and all of it's images
are loaded and displayed.
| Reporter | ||
Comment 1•24 years ago
|
||
This only happens if I do the following:
document.location.replace("foo.html");
document.onload = alert("e");
The "e" appears before the document is loaded.
Comment 2•24 years ago
|
||
Made a simple testcase with your code and it worked exactly the same as in IE....
Comment 3•24 years ago
|
||
Vladimire: In the interest of triaging Unconfirms, should this bug be marked
WONTFIX, INVALID, NEW, or what?
| Reporter | ||
Comment 4•24 years ago
|
||
I have been away for a couple of days, but I'm certain that I can make a test
case to recreate this bug. I'll try to have it for you later today / tomorrow.
Until then, Unconfirmed seems the most correct.
| Reporter | ||
Comment 5•24 years ago
|
||
| Reporter | ||
Comment 6•24 years ago
|
||
I've just attached a test case for this bug that illustrates what I'm trying to
do. However, I've discovered that the problem also occurs in Netscape 4.75.
Maybe the code I've written is wrong, but it seems to match the examples so I'm
stymied.
I'm using mozilla 0.9.3
Comment 7•24 years ago
|
||
I just put an example of this at:
http://www.kaply.com/work/onload.html
I can't really reduce the testcase yet.
I put two alerts in that show the problem.
There is an INPUT field whose value is set to 2.
The alert shows this INPUT fields value.
On 4.x it properly shows 2, on Mozilla, it shows 0.
Comment 9•24 years ago
|
||
dupe of 93015 or vice versa?
Comment 10•24 years ago
|
||
yes, dup of 93015
*** This bug has been marked as a duplicate of 93015 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•