I’m developing an OAuth authentication flow purely in JavaScript and I want to show the user the “grant access” window in a popup, but it gets blocked. How can I prevent pop up windows created by either window.open or window.showModalDialog from being blocked by the different browsers’ pop-up blockers? Answer The general rule is that popup blockers will engage if