# Popup window help

**URL:** <https://forum.kirupa.com/t/popup-window-help/14785>\
**Category:** flash\
**Created:** [March 2, 2003, 8:29pm UTC](https://forum.kirupa.com/t/popup-window-help/14785 "2003-03-02T20:29:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stoudty](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@stoudty](https://forum.kirupa.com/u/stoudty)\
**Post date:** [March 2, 2003, 8:29pm UTC](https://forum.kirupa.com/t/popup-window-help/14785/1 "2003-03-02T20:29:44Z")

</div>

Hi there, just looking for some help, i want to use the javascript popup window for a project im working on:

[http://www.kirupa.com/developer/mx/centered\_popup.htm](http://www.kirupa.com/developer/mx/centered_popup.htm)

but when i edit the url for the page to open, it comes up with a blank screen with:

javascript:var%20myWin;%20if(!myWin%20||%20myWin.closed){myWin%20=%20window.open(‘[http://www.enter.net](http://www.enter.net)’,‘yay’,‘width=400,height=300,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top=’+((screen.height/2)-(150))+’,left=’+((screen.width/2)-(200))+’’)}else{myWin.focus();};void(0);

in the browser window. what did i do wrong, or is there a problem with the code on the site? thanks for the help!

---

<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:** [March 2, 2003, 8:53pm UTC](https://forum.kirupa.com/t/popup-window-help/14785/2 "2003-03-02T20:53:57Z")

</div>

Are you testing it out in Flash? If so then try publishing it out to HTML so that you can test it while the swf movie is embeded in a HTML document.

That’s a long shot, but you could try that.

---

<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:** [March 2, 2003, 9:09pm UTC](https://forum.kirupa.com/t/popup-window-help/14785/3 "2003-03-02T21:09:07Z")

</div>

> _Originally posted by lostinbeta [size=1]01-25-2003[/size]_  
> Oh wait, I see the problem.  
> Your window name can only be one word, you have it as two…

Might be?

---

<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:** [March 2, 2003, 11:17pm UTC](https://forum.kirupa.com/t/popup-window-help/14785/4 "2003-03-02T23:17:34Z")

</div>

theres a space in the url property just before the net

---

<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:** [March 3, 2003, 12:51am UTC](https://forum.kirupa.com/t/popup-window-help/14785/5 "2003-03-03T00:51:56Z")

</div>

the space before net was the culprit. looked over it a dozen times and did not see it, thanks guys!
