# POPUP Problem

**URL:** https://forum.kirupa.com/t/popup-problem/183493
**Category:** flash
**Created:** [March 27, 2006, 4:07pm UTC](https://forum.kirupa.com/t/popup-problem/183493 "2006-03-27T16:07:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bmerens](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bmerens](https://forum.kirupa.com/u/bmerens)
#### Post date: [March 27, 2006, 4:07pm UTC](https://forum.kirupa.com/t/popup-problem/183493/1 "2006-03-27T16:07:55Z")

</div>

hy,

following situation :

a button with AS :

on (release) {

image="’./1.html’";  
getURL (“javascript:NewWindow=window.open(”+image+",‘newWin’,‘width=810,height=610,left=5,top=5,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No’); NewWindow.focus(); void(0);");

}

=\> opens a new window with 1.html without any problem. 1.html contains my\_wave.SWF with a button with following AS:

on (release) {  
my\_mov=“2.mov”;  
getURL (“javascript:NewWindow=window.open(”+my\_mov+",‘newWin’,‘width=640,height=470,left=10,top=10,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No’); NewWindow.focus(); void(0);");  
}  
=\> and here is the problem. this popup opens in the SAME window and not ina new window.

What can I do to let it open in a new window and given the same properties to this new window as above : toolbar=No,location=No,scrollbars=No,status=No etc…

a geturl opens it in a new window but does not give toolbar=No,location=No,scrollbars=No,status=No etc… properties to the window

any suggestions?

thanks for your help! 😃

---

<div class="post-metadata">

### Author: ![chrisxkelley](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@chrisxkelley](https://forum.kirupa.com/u/chrisxkelley)
#### Post date: [March 27, 2006, 5:21pm UTC](https://forum.kirupa.com/t/popup-problem/183493/2 "2006-03-27T17:21:57Z")

</div>

your popups are trying to open in the same window because the “NewWindow” and “NewWin” are the javascript names for that particular window. make different names like “NewWindow\_1”, and such.

---

<div class="post-metadata">

### Author: ![bmerens](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bmerens](https://forum.kirupa.com/u/bmerens)
#### Post date: [March 27, 2006, 5:28pm UTC](https://forum.kirupa.com/t/popup-problem/183493/3 "2006-03-27T17:28:22Z")

</div>

ah! ok thanks alot! :-))
