Since you asked what site is doing in code to do this. Firstly the site is allowed to open a popup bypassing your default browser popup blockers because you actively clicked something on the page....