# Centering Pop-Up Window

**URL:** <https://forum.kirupa.com/t/centering-pop-up-window/287546>\
**Category:** flash\
**Created:** [May 3, 2009, 12:50pm UTC](https://forum.kirupa.com/t/centering-pop-up-window/287546 "2009-05-03T12:50:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jbudraitis](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@Jbudraitis](https://forum.kirupa.com/u/Jbudraitis)\
**Post date:** [May 3, 2009, 12:50pm UTC](https://forum.kirupa.com/t/centering-pop-up-window/287546/1 "2009-05-03T12:50:57Z")

</div>

I read the tutiorial and downloaded the the FLA file (CPOPOP) for Centering a Pop-Up window. I was unable to get either the download or my script to work. When you click on the button, it goes out to the site and displays a full screen window with the following address:

javascript:var%20myWin;%20if(!myWin%20||%20myWin.closed){myWin%20=%20window.open(‘[http://www.kirupa.com/modular/pop-up.htm’,‘kirupa’,‘width=400,height=300,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top=’+((screen.height/2)-(150))+’,left=’+((screen.width/2)-(200))+’](http://www.kirupa.com/modular/pop-up.htm','kirupa','width=400,height=300,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top='+((screen.height/2)-(150))+',left='+((screen.width/2)-(200))+')’)}else{myWin.focus();};void(0);

Thank you in advance for your help!
