# Centered Pop-up not working in IE

**URL:** <https://forum.kirupa.com/t/centered-pop-up-not-working-in-ie/143546>\
**Category:** Uncategorized\
**Created:** [April 6, 2005, 8:03pm UTC](https://forum.kirupa.com/t/centered-pop-up-not-working-in-ie/143546 "2005-04-06T20:03:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fullcircle](https://avatars.discourse-cdn.com/v4/letter/f/46a35a/32.png) [@fullcircle](https://forum.kirupa.com/u/fullcircle)\
**Post date:** [April 6, 2005, 8:03pm UTC](https://forum.kirupa.com/t/centered-pop-up-not-working-in-ie/143546/1 "2005-04-06T20:03:02Z")

</div>

I have a problem with the centered pop-up window tutorial that I can’t figure out.

I can get the pop-up windows to work correctly when using Safari on my MAC, but when attempt in IE on MAC or PC they don’t work.

I have a button that is embeded in a movieclip with this actionscript attached:

on (release) {  
//customize the window that gets opened  
// 0 equals NO.  
// 1 equals YES.  
address = “[http://www.tahvildari.com/headshots/index.htm](http://www.tahvildari.com/headshots/index.htm)”;  
target\_winName = “Tahvildari :: Headshots Portfolio”;  
width = 450;  
height = 600;  
toolbar = 0;  
location = 0;  
directories = 0;  
status = 0;  
menubar = 0;  
scrollbars = 1;  
resizable = 0;  
//sends data back to the function  
openWinCentre(address, target\_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);  
}

Then I used this actionscript on the line above the button, still within the same movieclip:

\_global.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {  
getURL (“javascript:var myWin; if(!myWin || myWin.closed){myWin = 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 + “))+’” + “’)}else{myWin.focus();};void(0);”);  
}

Any suggestions to why this isn’t working in IE?

Thanks for your help…
