Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sometimes the website will show an alert box akin to "Are you sure you want to leave?" when you try to leave the site.

Is it possible to disable this from happening, without using something like the NoScript extension?

share|improve this question

Tools > Page Info [Permissions] will let you set the permissions for a particular page/site.

On the Open Pop-up Windows setting, clear the "Use Default" check-box, and set Block

If that's not enough, you may be able to use a GreaseMonkey script, but without knowing which web-site, no-one here will be able to tell you how.

share|improve this answer

Not limited to Firefox, with ClickOff you can get rid of any annoying popup, on a Windows system.

share|improve this answer
I'm running Ubuntu – Hayek Feb 4 '10 at 4:51
ahh, sorry you should add this bit of information to your question :) – Molly7244 Feb 4 '10 at 12:46
My mistake. I added it as tags but not in the post itself. – Hayek Feb 5 '10 at 0:31
@Rajje - no, you didn't ... twas me editing the tags for you. :) Anyway, i'll leave the answer there in case someone stumbles over this question. – Molly7244 Feb 5 '10 at 0:59

This answer is really late, but this question showed up in Google for me when I was looking for a solution to this problem today. The solution I eventually found is here:

// ==UserScript==
// @name           BlockUnloadEvents
// @namespace
// @description    This stops ANY AND ALL javascript that stops you from leaving a page. Inspired by this greasemonky script:
// @include        *
// ==/UserScript==
(function() {
      unsafeWindow.onbeforeunload = null;

      unsafeWindow.onunload = null;

      //unsafeWindow.alert = null;

      //unsafeWindow.confirm = null;

      //unsafeWindow.prompt = null;

      // = null;  
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .