Firefox 4 onBeforeUnload custom message

From MDN:

Note that in Firefox 4 and later the returned string is not displayed to the user. See Bug 588292.

This “Bug” is actually a (imho questionable) feature.. so there’s no way to display the message in Firefox 4. If you think it should be changed, comment on that bug so the Firefox developers will know that people actually want to be able to show a custom string.

Leave a Comment