# Pop up windows

**URL:** <https://forum.kirupa.com/t/pop-up-windows/240818>\
**Category:** Uncategorized\
**Created:** [October 6, 2007, 6:10pm UTC](https://forum.kirupa.com/t/pop-up-windows/240818 "2007-10-06T18:10:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fede2008](https://avatars.discourse-cdn.com/v4/letter/f/ba9def/32.png) [@Fede2008](https://forum.kirupa.com/u/Fede2008)\
**Post date:** [October 6, 2007, 6:10pm UTC](https://forum.kirupa.com/t/pop-up-windows/240818/1 "2007-10-06T18:10:01Z")

</div>

Hello all, I have a small question:

I’m using pop up windows on my flash site and I want them to have a fixed size.  
It worked good with CS2… not anymore :crying:

I have this code on my html page (where’s the basic flash)

```php
<script language="javascript">
function openBrWindow(theURL,winName,w,h,scrollbars) 
    { 
      LeftPosition=( screen.width)?(screen.width-w)/2:100;
      TopPosition=(screen.height)?(screen.height-h)/2:100;
 
      settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scrollbars+',location=no,directories=no,status=0,menubar=no,toolbar=no,resizable=no,address=no'; 
      URL = theURL;
      window.open(URL,winName,settings);
    }

```

and this is what I have on my buttons (I guess this must be wrong) :q:

[COLOR=green]var request:URLRequest = new URLRequest(“javascript:openBrWindow(‘[http://www.google.com](http://www.google.com)’,’\_new’,‘1020’,‘668’,‘no’)”);[/COLOR]  
[COLOR=green]navigateToURL(request, “\_blank”);[/COLOR]

Any suggestions?
