The fact that people make bad things with features doesn’t mean these features are inherently bad. You’ll always have people abusing the technology. Pop up dialogs are used a lot for e.g. form validation.
Chrome gives you a checkbox on the second alert on the same website to prevent any future one. You can’t avoid the first two but you can avoid all the next ones.