1. Home
  2. Docs
  3. SiteLint
  4. Security Rules
  5. 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? Yes No