The script uses window.open() javascript function to open link in a blank window. Then the focus is got back to the window.