# Center popup i tried but no work

**URL:** <https://forum.kirupa.com/t/center-popup-i-tried-but-no-work/94062>\
**Category:** Uncategorized\
**Created:** [November 7, 2003, 11:52pm UTC](https://forum.kirupa.com/t/center-popup-i-tried-but-no-work/94062 "2003-11-07T23:52:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdjstudios](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mdjstudios](https://forum.kirupa.com/u/mdjstudios)\
**Post date:** [November 7, 2003, 11:52pm UTC](https://forum.kirupa.com/t/center-popup-i-tried-but-no-work/94062/1 "2003-11-07T23:52:25Z")

</div>

ok this is what i got so far for my flash button code and for my frame. i wanna make a popup window that is 550 x 400…  
code for button=  
on (release) {  
// customize the window that gets opened  
// 0 equals NO.  
// 1 equals YES.  
address = “[http://www.freewebs.com/headface/Episode1.html](http://www.freewebs.com/headface/Episode1.html)”;  
target\_winName = “HeadFace v5”;  
width = 550;  
height = 400;  
toolbar = 0;  
location = 0;  
directories = 0;  
status = 0;  
menubar = 0;  
scrollbars = 0;  
resizable = 0;  
// sends data back to the function  
openWinCentre(address, target\_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);  
}

thats for my button!  
this is for my frame!:::

\_global.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {  
getURL(“javascript:window.open(’”+url+"’,’"+winName+"’,’"+“width=”+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top=’+((screen.height/2)-("+h/2+"))+’,left=’+((screen.width/2)-("+w/2+"))+’"+"’);void(0);");  
};

now when i press da button the site address come out to be…

javascript:window.open(‘[http://www.freewebs.com/headface/Episode1.html’,‘HeadFace%20v5’,‘width=550,height=400,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top=’+((screen.height/2)-(200))+’,left=’+((screen.width/2)-(275))+’](http://www.freewebs.com/headface/Episode1.html','HeadFace%20v5','width=550,height=400,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top='+((screen.height/2)-(200))+',left='+((screen.width/2)-(275))+')’);void(0);

waz wrong~! plz help!
