You cannot. This is a browser feature, which if you could disable it via JavaScript, every site would be doing it.
At best you can test if it’s enabled or disabled with something like the following in your applications code:
winpop = window.open("asdf.html");
if(!winpop || winpop.closed)alert("Popups are required");
You could also look at changing the browser settings / trusted sites to allow the popups from this single domain/site.
Other options which I have not explored, is adding the site to trusted sites zone / allowing popups from the site via Group Policy (if in a domain / corporate environment), much the same as above, just controlled via group policy.
There may be other ways but an on-code solution is not possible AFAIK.
-DB