搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How do I close a single Window when the page refuses to close?

more options

When one of the windows (not tab) refuses to close how do I "kill" that window without killing the rest of the windows that are open?

When one of the windows (not tab) refuses to close how do I "kill" that window without killing the rest of the windows that are open?

所有回覆 (5)

more options

That is not possible as far as I know.

Can't you close all open tabs via the Ctrl+W short cut or by middle-clicking the tab?

You can try to temporarily disable JavaScript to see if that allows to close the window.


Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.

  • Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
  • Do NOT click the Reset button on the Safe Mode start window
more options

Could you describe the scenario in a little more detail? Does Firefox just ignore clicks on the red "X" or do you get a message saying that you are not allowed to close the window or does Windows add "Not Responding" to the title bar of that window when you try to close it? Et cetera.

more options

Clicks to close the window are ignored. There is a message that gives a choice to leave the page, but when you click on it it simply reposts the same message over and over again. The only way I can close the window is use ctl-alt-delete and shut down FireFox losing all my other open windows.

more options

Try to toggle the dom.disable_beforeunload pref on the about:config page.

You can open the about:config page via the location/address bar and you can accept the warning and click "I'll be careful" to continue

more options

Is this like that scam from last year where you get "trapped" in a page? You could try this:

If you haven't already installed it, open a new tab (Ctrl+t) or new window (Ctrl+n) and go to my bookmarklet page:

http://dev.jeffersonscher.com/bookmarklets.html#escape

If you do not normally display the Bookmarks Toolbar, you can add it to (or move it to) the Bookmarks menu. Hopefully you won't need it very often, or perhaps ever again.

To quickly show or hide the Bookmarks Toolbar, you can use the Bookmarks button on the main toolbar, or right-click a blank area of the tab bar, or the new tab ("+") button.

Then switch back to the un-close-able page and click the Escape button.