How can rel="noopener" or rel="noreferrer" attributes be vital when using target="_blank"?

  • They force the link to open in the same window. 
  • They make the link load faster. 
  • They prevent the new page from accessing the original page's window.opener object. 
  • They provide SEO benefits. 
The rel="noopener" and rel="noreferrer" attributes are crucial for security and performance reasons. When using target="_blank", the new page has access to the window.opener object of the original page, which could expose it to potentially malicious attacks, like reverse tabnabbing. rel="noopener" prevents the new page from accessing the window.opener object, while rel="noreferrer" goes a step further by also preventing the Referer header from being sent to the new page. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *