Javascript: Center Popup Window Based On Browser Position

Here is a short code to center your popup window based on the browser’s position using Javascript. The variable popW and popH hold constant width and height values of the popup window wheres the variables w and h hold the browser’s location on the screen.

Related Posts Plugin for WordPress, Blogger...


Leave a Reply

Your email address will not be published. Required fields are marked *