Skip to content
EUID Audit service & seal, Home
Get your website audited

This translation has not been editorially reviewed yet. The German version is authoritative. Deutsche Fassung

Accessibility

Open external links in the new tab: yes or no?

As a rule, no: even a link to a foreign website opens better in the same tab, and the visitor himself decides on a new one. A new tab is worthwhile if someone looks up something while filling out a form, or if they compare content. Then the link says it before, in the text or with an icon including stored text.

In the new tab, the back button does not work

The new tab starts without history. The back button remains ineffective, and the visitor must find himself to the old tab. The W3C and Nielsen Norman Group, a research bureau for usability, both call this sequence. It weighs heavier on the phone because the old tab is never visible there. Those who work with a magnifying glass often do not see the new tab open, and many visitors do not notice it, according to the researchers. If many tabs are already open, the test subjects annoyed everyone else.

When looking up and comparing, the new tab helps

The W3C gives as an example the detailed help to a form: it opens in the new tab so that entered data is preserved. The Nielsen Norman Group observed further cases in tests: comparing content side by side, merging data from several tabs, keeping products open for later viewing, using an overview as a starting point. After that, visitors simply close the tab. The new tab was rejected after a short look and in multi-stage processes, in which the next step suddenly went elsewhere.

WCAG considers the missing reference to level AAA as a fault case

The W3C calls the note "opens in new window" in its techniques good practice and writes there that it is not necessary for any particular criterion. In the case of criterion 3.2.5 of the highest level AAA, it still maintains a link without such notice as an error case. The justification is set out in the explanatory note: The click requests the page. The new tab is only considered desired if the visitor expressly requests it. Anyone who writes the note in the link text meets both readings.

The open tab does not keep anyone on your side

Often the reason for the new tab is: The visitor stays with us. The Nielsen Norman Group, on the other hand, says: He has to find back himself, and no one guarantees that he will. Visitors see through the intention, and this can reduce their trust in the brand. Whoever wants to go, goes anyway. In the same tab, the back button leads the visitor back to you if he wants to go back.

The old security problem solve current browsers themselves

Previously, a foreign page that opened via target=" blank" could exchange the starting page in the old tab, for example for a fake login mask. OWASP, an application security foundation, calls this reverse tabnabbing. According to OWASP, since about 2018, current browsers set rel="noopener" for such links, which cuts the connection between the tabs; The HTML standard also specifies this. Older browsers are still in circulation according to OWASP, so the attribute does not harm. For scripts with window.open, the developer sets the specification noopener himself.

Examples

Help with the form in the new tab

Not met
<a href="/hilfe/iban" target="_blank">Hilfe</a>
Passes
<a href="/hilfe/iban" target="_blank" rel="noopener">Wo finde ich die IBAN? (öffnet in neuem Tab)</a>

The link text says what comes and where it goes. The visitor decides before clicking, and the form remains in the old tab.

  • Write the note in the link text: "Help for IBAN (opens in new tab)". Reading programs tell him.
  • Use an icon for new tabs only with stored text, such as via aria-describedby, and the same throughout the site.
  • Decide for each task. According to Nielsen Norman Group, neither "external link" nor "PDF" alone says what the visitor wants to do afterwards.

More on this topic

Deutsche Fassung dieser Seite

  • Seal Digitale Barrierefreiheit
  • Seal Daten & Recht
  • Seal Technische Qualität
  • Seal Digital Excellence
  • Seal Cyberversicherung

Audited. For a better digital future.euid.com