Skip to content
easeweb
Search topics

Links that open a new tab without saying so

A shop's size guide link opens in a new tab with nothing in its words to say so, so people who don't see the tab open find that, in many browsers, Back no longer takes them to the shirt.

WCAG 2.2
SC 3.2.5AAA
Required by
Not required by Section 508 or EN 301 549
Broken <a href="/size-guide" target="_blank">
The accessibility problem illustrated: No vision:Where did the shirt page go?
01

The problem

People who can't see a new tab open, or don't notice it, lose the page they were on: in many browsers, Back no longer takes them there.

02

Try it

Tab to the size guide link and follow it, then press the browser’s Back to get back to the shirt.

The panel under the window shows what a screen reader says. Did anything warn you that a new tab would open, and does Back take you to the shirt?

Broken Can you fix this?

Linen shirt

$68

Not sure which size to choose? See the size guide

Screen reader says:

(Tab to the link)

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Open links in the same tab, or say in the link's words that it opens a new one.

  1. 1Open links in the same tab, unless the page would lose something.
  2. 2When a link opens a new tab, say so in its words, not only with an icon that has no name.
  3. 3Put the warning in the link's name, after its visible words, not in a title.
Before

A link that opens a new tab without saying so

<p>  Not sure which size to choose?  <a href="/size-guide" target="_blank">See the size guide</a></p>
After

Open the guide in the same tab

<p>  Not sure which size to choose?  <a href="/size-guide">See the size guide</a></p>

Fixing this with an AI coding assistant? Get this guide as Markdown, or get every guide in your coding agent.

04

Verify the fix

4 checks.

Test with: Keyboard, Screen reader, Zoom, Mouse

0 of 4 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat after the page's links or the content system that writes them change.

Limits

This is a starting pattern, not a guarantee for every page. It covers links that open new tabs; a link that opens a PDF or downloads a file should also say so, with the file's type and size, and the document itself has to be accessible; see scanned and untagged PDFs that screen readers can't read. Whether a link's words say where it goes is a separate failure; see banner and image links with no name. Windows that open with no link pressed at all, such as on page load, fail the same criterion in another way. Test with the screen readers, magnifiers and phones your visitors use.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

Keep this fixed as your code changes.

Turn guides like this into rules your coding agents and CI follow, then have the result retested with a keyboard and screen readers.

How retests work