Forcing Links to Open in a New Window or Tab

Forcing links to open in a new window or tab is not recommended. The best-practice advice on this topic is to avoid opening new windows/tabs without warning because:

  • it can be disorienting for some visitors
  • it resets the back button (using the back button in the new window won't take you back to the original window)
  • it takes control away from the visitor (they can choose to use Ctrl+click to open a regular link in a new tab, but they have no choice if we force a new window/tab to open)

There are specific scenarios where it is recommended, but generally it's discouraged for simply linking to external sites.

But if you still want to...

The Menu module provided with Drupal 7 does not provide functionality to force links to open in a new window or tab.

Links within Blocks, Articles, Basic Pages, etc. can be made to open in a new window or tab:

  1. Create the link using the Link button on the CKEditor toolbar.
  2. In the Link popup dialog, click the Target tab.
  3. Select New Window (_blank) from the Target drop-down menu.
  4. Click OK.

Tags: