This page is asking you to confirm that you want to leave - data you have entered may not be saved.
Can I stop "ask to confirm leaving" pop-up?
-
- Posts: 177
- Joined: September 3rd, 2010, 11:57 am
- Location: China
Can I stop "ask to confirm leaving" pop-up?
Firefox pop-up these message in some page, I found it annoying, can I stop it?
scream for the fact that we are actually dying when living
- Bluefang
- Posts: 7857
- Joined: August 10th, 2005, 2:55 pm
- Location: Vermont
- Contact:
Re: Can I stop "ask to confirm leaving" pop-up?
No you can't disable it. It is the page triggering the pop-up, not Firefox.
Be thankful, this dialog was improved in Firefox 4. Previously, it included text that was specified by the webpage, which often made it very misleading (used as a trap to keep you on questionable sites).
Be thankful, this dialog was improved in Firefox 4. Previously, it included text that was specified by the webpage, which often made it very misleading (used as a trap to keep you on questionable sites).
There have always been ghosts in the machine... random segments of code that have grouped together to form unexpected protocols. Unanticipated, these free radicals engender questions of free will, creativity, and even the nature of what we might call the soul...
-
- Posts: 177
- Joined: September 3rd, 2010, 11:57 am
- Location: China
Re: Can I stop "ask to confirm leaving" pop-up?
Bluefang wrote:No you can't disable it. It is the page triggering the pop-up, not Firefox.
Be thankful, this dialog was improved in Firefox 4. Previously, it included text that was specified by the webpage, which often made it very misleading (used as a trap to keep you on questionable sites).
I know what you mean, but somehow I doubt this one. It's not a javascript pop-up
scream for the fact that we are actually dying when living
- Bluefang
- Posts: 7857
- Joined: August 10th, 2005, 2:55 pm
- Location: Vermont
- Contact:
Re: Can I stop "ask to confirm leaving" pop-up?
The popup is triggered by assigning a onbeforeunload event handler. The string returned by the handler is shown in the popup. In Firefox 4, it will still trigger the popup if a handler is assigned, it will just ignore the string that is returned.
I have tried various methods (built-in to Firefox) to block this popup but none have worked. You might be able to do it with a Greasemonkey script, but I haven't tried.
I have tried various methods (built-in to Firefox) to block this popup but none have worked. You might be able to do it with a Greasemonkey script, but I haven't tried.
There have always been ghosts in the machine... random segments of code that have grouped together to form unexpected protocols. Unanticipated, these free radicals engender questions of free will, creativity, and even the nature of what we might call the soul...
-
- Posts: 604
- Joined: December 24th, 2010, 5:32 am
Re: Can I stop "ask to confirm leaving" pop-up?
I don't visit a wide variety of sites but Gmail does give me that message sometimes if I try to exit the site immediately after doing something. In this particular case, I don't think there's mala fide intent.
-
- Posts: 8779
- Joined: May 7th, 2007, 12:07 pm
Re: Can I stop "ask to confirm leaving" pop-up?
I found that onbeforeunload and onunload commands did things that were just a nuisance, so I blocked them with a local web filtering proxy called BFilter. That way, the command word gets turned into nonsense and Firefox ignores it. I know of no other way to block just those commands.
-
- Posts: 177
- Joined: September 3rd, 2010, 11:57 am
- Location: China
Re: Can I stop "ask to confirm leaving" pop-up?
Bluefang wrote:The popup is triggered by assigning a onbeforeunload event handler. The string returned by the handler is shown in the popup. In Firefox 4, it will still trigger the popup if a handler is assigned, it will just ignore the string that is returned.
I have tried various methods (built-in to Firefox) to block this popup but none have worked. You might be able to do it with a Greasemonkey script, but I haven't tried.
wow, that sounds like a really tricky annoying handler for some people.
scream for the fact that we are actually dying when living
- Bluefang
- Posts: 7857
- Joined: August 10th, 2005, 2:55 pm
- Location: Vermont
- Contact:
Re: Can I stop "ask to confirm leaving" pop-up?
vasa1 wrote:I don't visit a wide variety of sites but Gmail does give me that message sometimes if I try to exit the site immediately after doing something. In this particular case, I don't think there's mala fide intent.
I never said it was only used my malicious sites, just that it often is. That's the reason for the behavior change in Firefox 4.
There have always been ghosts in the machine... random segments of code that have grouped together to form unexpected protocols. Unanticipated, these free radicals engender questions of free will, creativity, and even the nature of what we might call the soul...
-
- Posts: 15
- Joined: July 31st, 2009, 7:27 am
Re: Can I stop "ask to confirm leaving" pop-up?
FF4's disabling page text actually caused issue for the JS app I developed for my company's own intranet usage - I have an application that allows user to do knowledge integration on the fly, and they could specify their preferences, then save them to DB altogether. But if someone accidentally tried to refresh/leave page before setting's saved, I do a courtesy popup to remind them exactly where were some items still unsaved. This was very useful, and now FF4 reduced it to a very uninformative dialog. I wish at least there's some settings to allow user to turn off this FF4 "feature". Is there any?
- Bluefang
- Posts: 7857
- Joined: August 10th, 2005, 2:55 pm
- Location: Vermont
- Contact:
Re: Can I stop "ask to confirm leaving" pop-up?
No, there is not. A simple solution would the to highlight unsaved fields or to put the message into an element at the top of the page.
There have always been ghosts in the machine... random segments of code that have grouped together to form unexpected protocols. Unanticipated, these free radicals engender questions of free will, creativity, and even the nature of what we might call the soul...
-
- Posts: 25
- Joined: June 12th, 2008, 11:46 pm
Re: Can I stop "ask to confirm leaving" pop-up?
Bluefang wrote:I have tried various methods (built-in to Firefox) to block this popup but none have worked. You might be able to do it with a Greasemonkey script, but I haven't tried.
tried below, and seems work.
Code: Select all
(function() {
window.addEventListener("load", foo, false);
function foo() {
var u = "beforeunload";
var v = unsafeWindow;
if (v._eventTypes && v._eventTypes[u]) {
var r=v._eventTypes[u];
for(var s=0;s<r.length;s++) {
v.removeEventListener(u,r[s],false);
}
v._eventTypes[u]=[];
}
}
})();
-
- Posts: 1
- Joined: June 18th, 2012, 1:42 am
Re: Can I stop "ask to confirm leaving" pop-up?
What kind of script is it and how to I install it.1moretime wrote:Bluefang wrote:I have tried various methods (built-in to Firefox) to block this popup but none have worked. You might be able to do it with a Greasemonkey script, but I haven't tried.
tried below, and seems work.Code: Select all
(function() {
window.addEventListener("load", foo, false);
function foo() {
var u = "beforeunload";
var v = unsafeWindow;
if (v._eventTypes && v._eventTypes[u]) {
var r=v._eventTypes[u];
for(var s=0;s<r.length;s++) {
v.removeEventListener(u,r[s],false);
}
v._eventTypes[u]=[];
}
}
})();
Thanks for your help
Roger
-
- New Member
- Posts: 1
- Joined: May 22nd, 2013, 2:50 pm
Re: Can I stop "ask to confirm leaving" pop-up?
We absolutely need an option to disallow websites to be able to do this. They can spam the question making it impossible to leave their site. Happens too frequently. And yes it only happens when I'm on naughty sites, but so what? Just cause I'm a pervert (like the rest of us) doesn't mean I should have to deal with websites commandeering my experience.