Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What triggers the popup blockers in browsers?

In what circumstances do blockup blockers in browsers activate, and in what circumstances do they not?

Can you ever use an onclick event on a link to trigger a popup (other than target = _blank) or will that always trigger the blockers?

like image 239
Will Avatar asked Oct 06 '22 20:10

Will


1 Answers

Most popup blockers are triggered when a popup is launched indirectly from a user action.

Some popup blockers are triggered when a user clicks, but most are not. Basically, if the popup is triggered within a click handler (or code that it calls), you are generally okay.

If possible, I would recommend avoiding popups entirely. They tend to disrupt the user experience, with a few exceptions.

like image 80
Brad Avatar answered Oct 10 '22 03:10

Brad