missing-rel-noopener

⌘K
  1. Home
  2. SiteLint
  3. Security Rules
  4. missing-rel-noopener

missing-rel-noopener

Print this article

Description

Determine if following HTML elements a, area, and form that navigates to an external resouce have defined an attribute rel="noopener".

Purpose

The noopener keyword for the rel attribute of the a, area, and form HTML elements instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it – by not setting the window.opener property on the opened window (it returns null).

How to fix it

  • For following HTML elements a, area, and form when they navigates to the external resource then add an attribute rel="noopener".

Standard

Best Practice, SiteLint

Was this article helpful to you? No Yes

How can we help?