Are you sure you want to navigate away from this page?

Bug reports and enhancement requests
Post Reply
RobertJ
Posts: 8
Joined: Mon Dec 06, 2010 8:37 pm

Are you sure you want to navigate away from this page?

Post by RobertJ »

I believe this annoying pop-up is generated by the JavaScript OnBeforeUnload() event. There have been a number of Firefox users on Mozillazine complaining about it. Other than killing all JavaScript on the site, would it make sense to provide an option in NS to ignore the event for all sites?

RobertJ (Mozillazine Moderator)


.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0) Gecko/20100101 Firefox/10.0
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Are you sure you want to navigate away from this page?

Post by therube »

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:11.0a2) Gecko/20120123 Firefox/11.0a2 SeaMonkey/2.8a2
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: Are you sure you want to navigate away from this page?

Post by dhouwn »

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Are you sure you want to navigate away from this page?

Post by therube »

Good find.
(I wonder why someone else didn't recall that ;-).)
And it still works.

Test page:
(Enable JavaScript), open link in new window, click the (window) Close button.

Like this, onbeforeunload Demo ?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:11.0a2) Gecko/20120123 Firefox/11.0a2 SeaMonkey/2.8a2
Post Reply