Open centered popup window

Open centered popup window

This script will open a popup window centered on the user's screen.

If the dimensions of the popup are larger than the users screen then the popup will be resized to be no larger than the user's screen.

I have incorporated this script into the Javascript component which is included in the fortunate library of components, available for free and downloadable from here: <a href="http://localhost/AboutFortunateWeb/Component-Library.aspx" target="_top">Component Library</a>.