This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

I am trying to open a new winow from an existing page.The onbeforeunload works well for the parent window but not for the new child window in Mozilla 41 .

more options

I am trying to open a new winow from an existing page.The onbeforeunload works well for the parent window but not for the new child window in Mozilla 41 . How ever this works for mozilla 40.

I am trying to open a new winow from an existing page.The onbeforeunload works well for the parent window but not for the new child window in Mozilla 41 . How ever this works for mozilla 40.

All Replies (5)

more options

What is the code that is not working -- can you link to a page demonstrating the problem?

Another user mentioned an issue with onbeforeunload not working the same in the last tab in a window versus a case where there is more than one tab. Does that apply to your scenario, or do both the parent and child windows have only one tab?

more options

The thing is, I have a parent window from which i have to open 5 child windows and for the 6th child window i kept a limitation as "max screen limit reached". Now if i close any one of the 5 child windows its record must be deleted from the database so that i can open one more child window. My attempt worked well for Firefox 40 but had a problem for Firefox 41. so please guide me asap.

Modified by James

more options

I have the same question: what is the code that worked before but has stopped working in Firefox 41?

more options

it is deleting the session record from the database table using ajax

more options

To research what might have changed in Firefox 41 related to beforeunload and XMLHttpRequest, try the link to all the related "bug" reports ("complete list of changes") on this page: https://www.mozilla.org/firefox/41.0.2/releasenotes/