Q
Why does a browser block some window.open() calls as pop-ups?
APop-ups are blocked only in private mode
BPop-ups that are not triggered by a direct user gesture, such as a click, are blocked by default
CAll window.open() calls are always blocked
DOnly HTTPS pop-ups are blocked
Correct Answer:
B. Pop-ups that are not triggered by a direct user gesture, such as a click, are blocked by default
Explanation:
Opening a window inside a click handler is usually allowed.
ALSO KNOW (related points):
• What does the autoplay policy of modern browsers generally allow? → Muted autoplay; video with sound usually needs prior user interaction
• Which Firefox release channel is designed for organizations that need stability and longer support? → Extended Support Release (ESR)
• What is the status of the Do Not Track (DNT) header? → It is largely abandoned because sites were not required to honor it; Global Privacy Control is a newer signal