# Pllleaseee help, center pop up window problem

**URL:** <https://forum.kirupa.com/t/pllleaseee-help-center-pop-up-window-problem/22075>\
**Category:** Uncategorized\
**Created:** [May 29, 2003, 9:56pm UTC](https://forum.kirupa.com/t/pllleaseee-help-center-pop-up-window-problem/22075 "2003-05-29T21:56:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ambient676](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Ambient676](https://forum.kirupa.com/u/Ambient676)\
**Post date:** [May 29, 2003, 9:56pm UTC](https://forum.kirupa.com/t/pllleaseee-help-center-pop-up-window-problem/22075/1 "2003-05-29T21:56:42Z")

</div>

im trying to link a button on my site to a html page in the same folder and ive tried the centered popup tutorial for this, the window pops up but the content i would like to have inside of it (the html page) is not, any ideas???

heres the code for the button:

* * *

on (release) {  
//customize the window that gets opened  
// 0 equals NO.  
// 1 equals YES.  
address = “photogallery.html”;  
target\_winName = “photogallery”;  
width = 400;  
height = 300;  
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);  
}

* * *

and heres the code for the layer w/ the action in it:

* * *

Movieclip.prototype.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);”);  
}

* * *

please help me out, im ripping out my hair here

---

<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:** [May 29, 2003, 9:59pm UTC](https://forum.kirupa.com/t/pllleaseee-help-center-pop-up-window-problem/22075/2 "2003-05-29T21:59:17Z")

</div>

think about it, is your problem really in flash? if your html page isn’t pulling anything up obviously there is soemthing wrong there. if your flash movie pop-ups the window your flash code is fine, but what abut the html page?

---

<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:** [May 29, 2003, 10:20pm UTC](https://forum.kirupa.com/t/pllleaseee-help-center-pop-up-window-problem/22075/3 "2003-05-29T22:20:53Z")

</div>

well i figured that but im not sure what i need to put within my html head tag

---

<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:** [May 29, 2003, 10:37pm UTC](https://forum.kirupa.com/t/pllleaseee-help-center-pop-up-window-problem/22075/4 "2003-05-29T22:37:26Z")

</div>

lol  
\<a href=“[http://www.w3schools.com](http://www.w3schools.com)”,"\_blank"\>w3schools.com\</a\>

---

<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:** [May 30, 2003, 2:20am UTC](https://forum.kirupa.com/t/pllleaseee-help-center-pop-up-window-problem/22075/5 "2003-05-30T02:20:58Z")

</div>

I don’t know digital. I used that tut a lot in one of my sites and never needed to put anything in my HTML file. The only script I have in my header is:

```php

<script language="javascript">
self.moveTo(0,0);
</script>

```

That’s it.

---

<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:** [May 30, 2003, 2:35am UTC](https://forum.kirupa.com/t/pllleaseee-help-center-pop-up-window-problem/22075/6 "2003-05-30T02:35:02Z")

</div>

does your window centre? im gathering it does everything but display stuffi nside it right?

if it doesnt centre, problem = javascript, if nothing displays inside the window, problem = between body tags…

🙂

i suggest checking you closed everything, i had a problem where i searched through a 60kb plain text page of javascript arrays to find out why it wasnt working, turns out it was a messed up /script tag right near the end that i was missing 🙂 heehe
