49. What is the purpose of rel=noopener?

rel="noopener" prevents a newly opened browsing context from using window.opener to access the opening document. It is relevant when links open another browsing context.

Key Takeaways
  • Understand opener relationships when using target=_blank.

  • Use appropriate security-related link relationships.

Knowledge Check

What relationship does noopener protect against?