Closed Bug 92869 Opened 24 years ago Closed 24 years ago

Can't programitcally set a document.onunload handler

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 52440

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.
Whiteboard: DIGBug
confirming build 07-27-00-0.9.2
Status: UNCONFIRMED → NEW
Ever confirmed: true
please attach the testcase to the bug....
seeing this on linux build 2001-07-30-06 as well.
Keywords: dom0, dom2
OS: Windows 2000 → All
Hardware: PC → All
Is this a duplicate of bug 52440 ? (Setting unload event on body element via JS doesn't work )
Depends on: 52440
Yes, it is. Thanks. *** This bug has been marked as a duplicate of 52440 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
verifying
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: