Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Close Safari window without confirmation Web Browsers
I'm often annoyed by the confirmation dialog that pops up in Safari 4 when I try to close a window with multiple tabs open. ("Are you sure you want to close this window?") But I don't want to turn off that message altogether (by checking its "Do not warn when closing multiple pages" box). Too often, I hit the close button by mistake when minimizing windows, so that warning is sometimes nice to have. Instead, I've discovered I can bypass that warning by holding down the Option key when clicking on the close button.
    •    
  • Currently 1.13 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (8 votes cast)
 
[13,820 views]  

Close Safari window without confirmation | 9 comments | Create New Account
Click here to return to the 'Close Safari window without confirmation' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Close Safari window without confirmation
Authored by: The - DDD on Aug 21, '09 08:05:05AM

Beware though that this closes ALL open Safari Windows, not just the one your clicking on.



[ Reply to This | # ]
Beware with multiple windows open...
Authored by: DarthMagnus on Aug 21, '09 08:09:39AM
This may get rid of the warning, but you also are telling it to close every open window in Safari.

As is the case throughout Mac OSX, option clicking on a window's buttons causes it to apply to ALL the open (non-minimized) windows in that application. So if you wanted to minimize all your open Finder windows, you could option click the minimize button on one of them. The same is true of items in the dock - option click one minimized window and all the minimized windows of that app will spring forward.

[ Reply to This | # ]
Close Safari window without confirmation
Authored by: rab777hp on Aug 21, '09 08:22:35AM

Holding the option key is a general tip to avoid confirmation dialogs, system-wide



[ Reply to This | # ]
Close Safari window without confirmation
Authored by: DougAdams on Aug 21, '09 08:53:46AM
Slightly different annoyance for me is closing all Safari windows but the front window. But AppleScript can do it:
tell application "Safari"
	set x to count of every window
	if x > 1 then
		repeat with i from x to 2 by -1
			close window i
		end repeat
	end if
end tell

---
Doug's AppleScripts for iTunes
dougscripts.com

[ Reply to This | # ]

Close Safari window without confirmation
Authored by: palahala on Aug 21, '09 09:31:06AM

To find more of such shortcuts: press the modifier keys (Shift, Control, Option) while looking at the menus.

You'll see the dots (indicating some confirmation before something happens) disappear for, for example, Private Browsing. (Just like with Restart, Shutdown and Log Out in the Apple menu.) In many applications you'll see ⌘W Close Window change into ⌥⌘W Close All Windows, just like ⌘M Minimize into ⌥⌘ Minimize All, or in Safari ⌘D Add Bookmark into ⇧⌘D Add Bookmark to Menu. And so on.



[ Reply to This | # ]
Close Safari window without confirmation
Authored by: alansky on Aug 22, '09 02:17:04PM

Excellent tip. Thanks!



[ Reply to This | # ]
Close Safari window without confirmation
Authored by: drandel on Aug 22, '09 10:55:41PM

What I'd REALLY like is a hack that would cause the regular click of the close button to only close the frontmost tab (without issuing a warning) and the click-with-option-key to do what it does now (close all without warning). Wouldn't that be more intuitive and Mac-like?



[ Reply to This | # ]
Close Safari window without confirmation
Authored by: Sesquipedalian on Aug 23, '09 03:38:29PM

No, it wouldn't be more Mac-like. It would be confusing.

When I want to close a tab, I click the close button on the tab. When I want to close the whole window, I click the close button on the window. That's the way it should be, according to Apple's human interface guidelines.



[ Reply to This | # ]
Close Safari window without confirmation
Authored by: Neville Hillyer on Jun 18, '10 10:03:53AM

It took me a while to discover why Safari on some Macs behaved differently to others but I think this has corrected it.

Select 'Confirm before closing multiple tabs or windows'
Close preferences.
Deselect 'Confirm before closing multiple tabs or windows'

This did it for me.



[ Reply to This | # ]