# popUp window not working in Explorer

**URL:** <https://forum.kirupa.com/t/popup-window-not-working-in-explorer/168525>\
**Category:** flash\
**Created:** [November 7, 2005, 10:02pm UTC](https://forum.kirupa.com/t/popup-window-not-working-in-explorer/168525 "2005-11-07T22:02:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![helen\_zoe](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@helen\_zoe](https://forum.kirupa.com/u/helen_zoe)\
**Post date:** [November 7, 2005, 10:02pm UTC](https://forum.kirupa.com/t/popup-window-not-working-in-explorer/168525/1 "2005-11-07T22:02:02Z")

</div>

hi

i have a site which has pop up windows - working fine everywhere except for Internet Explorer - help anybody?! the code goes as follows

thankyous…

on (release) {  
//customize the window that gets opened  
// 0 equals NO.  
// 1 equals YES.  
address = “[http://www.freelancecameraman.info/cigs.html](http://www.freelancecameraman.info/cigs.html)”;  
target\_winName = “andy cotton”;  
width = 495;  
height = 490;  
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);  
}

\_root.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);");

```

}
