Closed
Bug 92869
Opened 24 years ago
Closed 24 years ago
Can't programitcally set a document.onunload handler
Categories
(Core :: DOM: Events, defect)
Core
DOM: Events
Tracking
()
People
(Reporter: sandipc, Assigned: joki)
References
()
Details
(Keywords: dom0, dom2, Whiteboard: DIGBug)
Attachments
(1 file)
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
BuildID: 20010718
Trying to programitically set the onunload handler on the body. It appears to
be ignore if its set programitcally. Everything *works* if the handler is set
in the HTML, but this approach is less flexible.
Reproducible: Always
Steps to Reproduce:
1. Click on the above link
2. Follow the instructions on the page
Actual Results: onunload() handler doesn't get set
Expected Results: Setting the onunload programtially should work as if its
set in the HTML.
| Reporter | ||
Updated•24 years ago
|
Whiteboard: DIGBug
Comment 1•24 years ago
|
||
confirming build 07-27-00-0.9.2
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•24 years ago
|
||
please attach the testcase to the bug....
| Reporter | ||
Comment 3•24 years ago
|
||
Comment 4•24 years ago
|
||
seeing this on linux build 2001-07-30-06 as well.
Comment 5•24 years ago
|
||
Is this a duplicate of bug 52440 ? (Setting unload event on body element via JS
doesn't work )
| Assignee | ||
Comment 6•24 years ago
|
||
Yes, it is. Thanks.
*** This bug has been marked as a duplicate of 52440 ***
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
•