Links That Are Set to Open a New Window Without Warning

Links That Are Set to Open a New Window Without Warning

WCAG Focus: WCAG 3.2.5 (AAA), 3.2.2 (A)

Setting target="_blank" on WordPress links opens a brand-new browser tab or window. When this happens without advance warning, the browser Back button stops working in the new tab—leaving screen reader and cognitive-disability users stranded without knowing how to return to the previous page.

Why This Pattern Violates WCAG

WCAG 3.2.5 Change on Request (Level AAA) and Technique G201 advise giving users advance notice in the link text (such as "(opens in new window)") before opening a new window or tab.

Always pair target="_blank" with rel="noopener noreferrer" for security as well.

Code Comparison

Inaccessible Silent New-Window Link

<a href="https://w3.org/WAI/" target="_blank">W3C WAI Guidelines</a>

Compliant Link With New-Window Warning

<a href="https://w3.org/WAI/" target="_blank" rel="noopener noreferrer">
  W3C WAI Guidelines (opens in a new tab)
</a>

How to Fix It in WordPress

  • Avoid opening internal WordPress links in new tabs unless the user is inside an active form or checkout workflow.
  • Whenever target="_blank" is necessary, add a clear text or screen-reader-only notice warning that the link opens a new window.

Finding This Issue Automatically

Authors toggle "Open in new tab" inside Gutenberg every day without remembering to add a warning in the link text. The WP ADA Compliance Check plugin detects silent target="_blank" links and will automatically fix the issue by notifying users whenever a link opens in a new window.

WCAG References & Supporting Materials

WCAG Success Criteria

Supporting Documentation & Guides

Subscribe

Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

Cart Accessibility Tools
hide