Skip to main content
Version: v6

Link opens a new window without warning the user

Link opens a new window without warning the user — rule summary
FieldValue
Rule codeLink_ExternalWarning_Missing
WCAG conformance levelAAA
WCAG success criterion3.2.5 Change on Request
Must be fixed at sourceNo

Description

We detected a link that opened an external window or tab but did not convey this functionality to users. New windows take the focus away from what the user is reading or doing and as such, should be communicated or expected by the user. Users should be aware of changes in content and should be able to change content upon request. The change in the content when a user clicks a link is expected but unless the user can be made aware that the link will open in a new window or tab, then that change of context cannot be regarded as initiated by the user.

How to fix

Links that open a new page when clicked should notify users that they do so. Ensure that the target='_blank' attribute is provided on links that open external windows or target='_new' for links that open in new tabs. Ensure that accessible link text is also provided to reflect and indicate this functionality. For links with a target='_blank' attribute, supplement with rel='noopener noreferrer' to enhance security and performance. For example: <a href='https://example.com' target='_blank' rel='noopener noreferrer'>Visit Example.com (opens in new window)</a>