
UPDATE: It will also work on windows that aren't maxed out to the screen's width and height now thanks to you're on dual monitor, the window will center horizontally, but not vertically. And we may want to center the popup on the screen. Popup blocking In the past, evil sites abused popups a lot. Sometimes, we want to open a popup window in our JavaScript web app. A popup can navigate (change URL) and send messages to the opener window. So opening a popup from a third-party, non-trusted site is safe.
#Javascript center popup window software
Please make sure your security software allows popup windows to be opened by this web application.

Heres one of my custom cross-browser scripts that can be reused dynamically to center any popped window of any size on the screen.

SINGLE/DUAL MONITOR FUNCTION (credit to - thank you!) A popup is a separate window which has its own independent JavaScript environment. Proper way to center pop window with Javascript and pass html.
