What causes pop-up blockers in browsers?

In what circumstances are browser locks activated, and in what circumstances do they not?

Can you ever use the onclick event on a link to trigger a popup (except target = _blank) or will it always trigger blockers?

+5
source share
2 answers

Most pop-up blockers are triggered when a pop-up is triggered indirectly from a user action.

Some blocking pop-ups are triggered when the user clicks, but most of them are not. Basically, if a pop-up window starts in the click handler (or the code that it calls), you are usually fine.

, . , , , .

+3

answer . , onclick, , , , - , , , , , .

​​ , .

+1

All Articles