--- url: "https://www.w3.org/WAI/WCAG22/Techniques/general/G201" titulek: "G201: Giving users advanced warning when opening a new window | WAI | W3C" h1: "Technique G201:Giving users advanced warning when opening a new window" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:33:39" znaku: 4474 slov: 686 kodovani: "utf-8" sha256: "cdcca07d6ef4aa31eb3c7defb2b8e72bb720a8d860649ff0d867f83fba67f44b" --- # Technique G201:Giving users advanced warning when opening a new window ## About this Technique This technique relates to: - [2.4.4 Link Purpose (In Context)](https://www.w3.org/WAI/WCAG22/Understanding/link-purpose-in-context) ( **Advisory** ) - [2.4.6 Headings and Labels](https://www.w3.org/WAI/WCAG22/Understanding/headings-and-labels) ( **Advisory** ) - [2.4.9 Link Purpose (Link Only)](https://www.w3.org/WAI/WCAG22/Understanding/link-purpose-link-only) ( **Advisory** ) - [3.2.5 Change on Request](https://www.w3.org/WAI/WCAG22/Understanding/change-on-request) ( **Advisory** ) This technique applies to pages that open new windows. Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are **not required** to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description The objective of this technique is to provide advanced warning for links and buttons that open a new window or tab when activated by the user. This only applies to "regular" activation, such as a left-click on a mouse, or pressing Enter or Space when the link or button has focus – actions that normally would open the link target in the current tab or window, trigger an action on the current page, or result in a form submission and a loading a confirmation page in the current tab or window. The technique does not apply to situations where the user explicitly chooses to open a new tab or window – for instance, when using the browser's context menu option, or middle-clicking a link with the mouse. Opening a new tab or window when a link or button is activated can be disorienting for people who have difficulty perceiving visual content, and for some people with cognitive disabilities, if they are not warned in advance. Providing a warning or indication that a new tab or window will be opened allows the user to decide it they want to leave the current tab or window. It will also help them understand that, once they follow they activate the link or button, their browser's "back" button will not work and that they have to return to the last tab or window they had open, in order to find their previous location. Note This technique is advisory. While indicating that a link or button "opens in a new window" is considered good practice, it is not necessary to meet the requirements of any particular success criterion. ## Examples ### Example 1: Including the warning in the text describing a control The name or label that describes a control can include the warning about opening in a new window. ``` All about Knitting (opens in new window) ``` ### Example 2: Using an icon and accessible description to provide a warning before opening a new window The code below uses CSS to add an SVG icon to a link, providing a visual warning before opening a new window. In addition, `aria-describedby` is used on the link to include an equivalent text warning for assistive technology users. ``` Link opens in new window notification

Link opens in new window notification

This is an example of an external link

``` A [working example of Using an icon and accessible description to provide a warning before opening a new window](../../working-examples/css-aria-new-window-warn/) is available. ## Tests ### Procedure For each link or button that opens a new window or tab when activated: 1. Check that there is a warning spoken in assistive technology that this control opens a new window. 2. Check that there is a visual warning/indication that this control opens a new window. ### Expected Results - Checks #1 and #2 are true. Back to Top