Opened 14 years ago
Closed 12 years ago
#4791 closed bug (invalid)
$(childWindow).unload registers an unload handler for the owner window
Reported by: | kevin | Owned by: | kevin |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | event | Version: | 1.3.2 |
Keywords: | unload | Cc: | |
Blocked by: | Blocking: |
Description
Registering an unload handler on a child window doesn't work.
The handler instead is attached to the parent window.
<!doctype html> <html> <head> <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.js"></script> <script> function onclick() { var childWindow = window.open('about:blank'); $(childWindow).unload(function() {alert('child window closed');}); } </script> </head> <body> <a href="javascript:onclick();">click</a> </body> </html>
Change History (4)
comment:1 Changed 14 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 Changed 14 years ago by
Resolution: | duplicate |
---|---|
Status: | closed → reopened |
Reopening this--I can confirm that the fix in #4628 does not fix this issue.
comment:3 Changed 12 years ago by
Owner: | changed from brandon to kevin |
---|---|
Status: | reopened → pending |
Please provide a test case demonstrating this issue.
comment:4 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Automatically closed due to 14 days of inactivity.
Note: See
TracTickets for help on using
tickets.
This was fixed with #4268