system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: Why can't adware/pop-ups trick you into clicking them through the X button that closes the pop-up window?

What I mean by this: for example on an Android phone there are pop-ups and similar things in apps and browsers - is there a real risk of getting infected with adware by clicking the X button to close the window?

If not, why? Isn't there a way or method of linking something to a button that closes a window? Same question applies to Windows as well.

EDIT: mean*
gpt
I can't speak for Android, but on desktops the close button is part of the browser, which doesn't permit websites to modify its function for just that reason. Web content relies on the browser or plugin to execute it; if the browser doesn't support something, it won't happen. However, sneaky adware often includes its own button that simulates the one on the real window, hoping users will inadvertently click that.