# Problem with popup window

**URL:** <https://forum.kirupa.com/t/problem-with-popup-window/25896>\
**Category:** Uncategorized\
**Created:** [July 17, 2003, 12:00pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896 "2003-07-17T12:00:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cheez00](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@Cheez00](https://forum.kirupa.com/u/Cheez00)\
**Post date:** [July 17, 2003, 12:00pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/1 "2003-07-17T12:00:45Z")

</div>

[http://www.kirupa.com/developer/flash5/newwindow.htm](http://www.kirupa.com/developer/flash5/newwindow.htm)

in this tutorial, it says put as the url javascript:url

something along those lines it says just copy it into the url, thats not a url, where do i put the javascript part… i dont understand

---

<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:** [July 17, 2003, 12:05pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/2 "2003-07-17T12:05:39Z")

</div>

Follow this thread, it might be a bit clearer.

[http://www.kirupaforum.com/forums/showthread.php?s=&postid=242637#post242637](http://www.kirupaforum.com/forums/showthread.php?s=&postid=242637#post242637)

---

<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:** [July 17, 2003, 12:35pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/3 "2003-07-17T12:35:04Z")

</div>

its odd, when i do it, its like its trying to visit the site javascript:open what not… like its the url

---

<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:** [July 17, 2003, 1:42pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/4 "2003-07-17T13:42:46Z")

</div>

have you got it yet???

Just a pop up from flash, no resize, etc, etc  
…right

---

<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:** [July 18, 2003, 3:18am UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/5 "2003-07-18T03:18:57Z")

</div>

i meant to say i didnt get 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:** [July 18, 2003, 1:12pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/6 "2003-07-18T13:12:37Z")

</div>

Put this on your button (on the stage)

on (release) {  
getURL("javascript:openNewWindow(‘Demo. html’,‘thewin’,'height=500,width=650,toolbar=no,sc

rollbars=no’) ");  
}

and then put this on the html/asp page that contains the flash movie that links the user to the no resize pop up window

----script language=“JavaScript”—  
function openNewWindow(URLtoOpen, windowName, windowFeatures) {  
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }  
----/script–

post back if there are problems  
also if you get this

Jeff

* * *

Fisher

---

<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:** [July 18, 2003, 2:44pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/7 "2003-07-18T14:44:04Z")

</div>

wait i see it… what does teh flash part by theWin mean… what do i put there, also what if i want just a scrollbar, tahts all the features i want

---

<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:** [July 18, 2003, 2:48pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/8 "2003-07-18T14:48:14Z")

</div>

Javascript allows you to name different stuff, pages, forms, inputs, etc.

we just named that new window, ‘theWin’  
You could pass it(name it) whatever you want,

scrollbar, hold on a second

---

<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:** [July 18, 2003, 2:49pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/9 "2003-07-18T14:49:48Z")

</div>

scrollbars = yes

on (release) {  
getURL("javascript:openNewWindow(‘Demo. html’,‘thewin’,‘height=500,width=650,toolbar=no,scrollbars=yes’) ");  
}

---

<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:** [July 18, 2003, 3:36pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/10 "2003-07-18T15:36:01Z")

</div>

Cheez, did you get it to work?

---

<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:** [July 18, 2003, 6:15pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/11 "2003-07-18T18:15:20Z")

</div>

> 

----script language=“JavaScript”—  
function openNewWindow(URLtoOpen, windowName, windowFeatures) {  
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }  
----/script–

this is the part that always gives me problems. should this go in the head or the body of the page or doesnt it matter?

---

<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:** [July 18, 2003, 6:25pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/12 "2003-07-18T18:25:31Z")

</div>

in the \<head\> is the correct way, but the body will also work

---

<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:** [July 18, 2003, 6:26pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/13 "2003-07-18T18:26:10Z")

</div>

in the -head- is the correct way, but the body will also work

---

<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:** [July 18, 2003, 6:28pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/14 "2003-07-18T18:28:26Z")

</div>

i think something is wrong wit the code for the -head- cuz i tested it and the code is showing up in my 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:** [July 18, 2003, 6:32pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/15 "2003-07-18T18:32:30Z")

</div>

go here

[http://www.navicatax.com](http://www.navicatax.com)\demolink.htm

view source and the javascript that is directly under the end title tag is exactly the way you want it

got 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:** [July 18, 2003, 6:40pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/16 "2003-07-18T18:40:18Z")

</div>

actually u missed something. I noticed in the link that u gave that the page had  
this tag just beneath the body opening tag

```auto
<!--<A HREF="#" TARGET="_self" onClick="window.open('Demo.html','Demo','toolbar=no,width=650,height=500,left=175,top=100, status=no,scrollbars=no,resize=no');return false">
Launch Demo</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:** [July 18, 2003, 6:51pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/17 "2003-07-18T18:51:11Z")

</div>

\<\*\*\*\*!— means that something is commented out in html and is not used, my --a href that links to the no-resize pop up window --is in the flsh movie

behind a button.  
The original question of this thread was how do you do a pop window (no-resize) FROM a flash movie to anothr page

So, i did not forget anything—thank you

---

<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:** [July 18, 2003, 6:52pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/18 "2003-07-18T18:52:46Z")

</div>

—’\<!— blah --\>’‘means that something is commented out in html and is not used, my --a href that links to the no-resize pop up window --is in the flsh movie’’

behind a button.  
The original question of this thread was how do you do a pop window (no-resize) FROM a flash movie to anothr page

So, i did not forget anything—thank you

---

<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:** [July 18, 2003, 6:53pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/19 "2003-07-18T18:53:59Z")

</div>

the code that you posted back is now in the flash movie

---

<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:** [July 18, 2003, 7:00pm UTC](https://forum.kirupa.com/t/problem-with-popup-window/25896/20 "2003-07-18T19:00:26Z")

</div>

thanx 4 the link anyway, this code was exactly what i needed to solve a problem that i’ve been having for a month now.

[Next page](https://forum.kirupa.com/t/problem-with-popup-window/25896.md?page=2)
