Skip to content

Commit

Permalink
Link types: noopener - add note about new default (#3089)
Browse files Browse the repository at this point in the history
noopener is now implicitly set on `_blank` by default
  • Loading branch information
wesinator authored Mar 13, 2021
1 parent 59feb08 commit 60a1f77
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/en-us/web/html/link_types/noopener/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

<p>Note that when <code>noopener</code> is used, nonempty target names other than <code>_top</code>, <code>_self</code>, and <code>_parent</code> are all treated like <code>_blank</code> in terms of deciding whether to open a new window/tab.</p>

<div class="notecard note">
<h4>Note</h4>
<p>Setting <code>target="_blank"</code> on <code>&lt;a&gt;</code> elements now implicitly provides the same <code>rel</code> behavior as setting <code><a href="/en-US/docs/Web/HTML/Link_types/noopener">rel="noopener"</a></code> which does not set <code>window.opener</code>. See <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#browser_compatibility">browser compatibility</a> for support status.</p>
</div>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
Expand Down

0 comments on commit 60a1f77

Please sign in to comment.