Force Safari to Open Target Links in New Tab Rather Than Window in Mac OS X
Mac users can issue a defaults command string to force Safari to open targeted new window links into new tabs instead of those new windows. This is handy if you open a lot of links that would usually launch a new window but would rather send them into easily managed tabs instead.
We’ll use a defaults command string to force Safari to open target = “_blank” links into new tabs rather than new windows. To get started, open the Terminal and type the following command:
defaults write com.apple.Safari TargetedClicksCreateTabs -bool true
Then restart Safari and from here on anytime you click a link targeted as _blank it will open in a new tab.
You can reverse this behavior and go back to the default new windows instead by typing:
defaults write com.apple.Safari TargetedClicksCreateTabs -bool false
I think opening these links in a tab makes a lot of sense and I’m not sure why Safari defaults to new windows, or has this feature so hidden.
Note that modern versions of Safari have an option to always open new links into tabs by default, so this is really best for the Mac users out there who are running prior releases without such support.