# Pop up window doesn't work

**URL:** <https://forum.kirupa.com/t/pop-up-window-doesnt-work/61755>\
**Category:** Uncategorized\
**Created:** [August 21, 2004, 12:44pm UTC](https://forum.kirupa.com/t/pop-up-window-doesnt-work/61755 "2004-08-21T12:44:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatnslow](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@fatnslow](https://forum.kirupa.com/u/fatnslow)\
**Post date:** [August 21, 2004, 12:44pm UTC](https://forum.kirupa.com/t/pop-up-window-doesnt-work/61755/1 "2004-08-21T12:44:46Z")

</div>

Hey, I used the pop-up tutorial here on kirupa, and heres what I got:  
in the as layer i have :

```auto

_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);");
};

```

and on the button I got this:

```auto

on (rollOver) {
 tellTarget ("/enter") {
  gotoAndPlay("over");
 }
}
on (release) {
 // customize the window that gets opened
 // 0 equals NO.
 // 1 equals YES.
 address = "index2.htm";
 target_winName = "vsf";
 width = 482;
 height = 421;
 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);
}

```

But when I view it online th pop up doesn’t work, it does when I view it in my folders, and in opera the pop-up works, but it still have scrollbar and it is lot of white space in top so it get weird.

Anyone able to help get it work?  
[http://www.vsf-fc.tk](http://www.vsf-fc.tk)

Thanks in advance,  
fatnslow

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 22, 2004, 11:37pm UTC](https://forum.kirupa.com/t/pop-up-window-doesnt-work/61755/2 "2004-08-22T23:37:43Z")

</div>

Anyone able to help here?

Thanks,  
fatnslow

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 23, 2004, 8:38pm UTC](https://forum.kirupa.com/t/pop-up-window-doesnt-work/61755/3 "2004-08-23T20:38:45Z")

</div>

Anyone able to help?
