Why is rel="noopener" added to links that use target="_blank"?
A
To block access to window.opener
Correct answer
B
To prevent search engines following it
C
To speed up loading of the linked page
D
To make the link open in the same tab
Correct answer
A. To block access to window.opener
19 views
⚔️
Challenge a friend on HTML
Same MCQs, timed, live leaderboard. Send the link on WhatsApp – no sign-up needed.
Create challenge
Explanation
Without it, the opened page could use window.opener to redirect your original tab to a phishing site (tabnabbing). Modern browsers now apply noopener to _blank by default.
Reference
Asked in: NTS, Web Developer Interviews
Doubts & discussionNot sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ
‹ Previous MCQ What does <!DOCTYPE html> at the start of a page do? Next MCQ › How is a <label> correctly linked to an input with id="email"?