Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

rel="noopener"

Thenoopener keyword for therel attribute of the<a>,<area>, and<form> 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 theWindow.opener property on the opened window (it returnsnull).

This is especially useful when opening untrusted links, in order to ensure they cannot tamper with the originating document via theWindow.opener property (seeAbout rel=noopener for more details), while still providing theReferer HTTP header (unlessnoreferrer is used as well).

Note that whennoopener is used, nonempty target names other than_top,_self, and_parent are all treated like_blank in terms of deciding whether to open a new window/tab.

Note:Settingtarget="_blank" on<a>,<area> and<form> elements implicitly provides the samerel behavior as settingrel="noopener" which does not setwindow.opener.

Specifications

Specification
HTML
# link-type-noopener

Browser compatibility

html.elements.a.rel.noopener

html.elements.area.rel.noopener

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp