# HELP! Multiple Pop Up windows not working

**URL:** https://forum.kirupa.com/t/help-multiple-pop-up-windows-not-working/179554
**Category:** Uncategorized
**Created:** [February 21, 2006, 6:19am UTC](https://forum.kirupa.com/t/help-multiple-pop-up-windows-not-working/179554 "2006-02-21T06:19:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kidIcarus](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kidIcarus](https://forum.kirupa.com/u/kidIcarus)
#### Post date: [February 21, 2006, 6:19am UTC](https://forum.kirupa.com/t/help-multiple-pop-up-windows-not-working/179554/1 "2006-02-21T06:19:58Z")

</div>

I am building a website in flash 8 and am having some difficulties with pop up windows. I have a navigation bar with various buttons, I want three of these buttons to open up seperate url’s in a pop up style window. I can get one to work, but cannot get the other two to work. All I need to know is how to get different buttons to open different pop ups. Here is the action script and javascript I am using, please tell me where I’m going wrong:

button 1:  
on (release) {  
getURL (“javascript:open\_window(‘[http://www.mysite.com/myhtml.html’,'height=350,width=600,toolbar=no,scrollbars=yes](http://www.mysite.com/myhtml.html','height=350,width=600,toolbar=no,scrollbars=yes)’)”);  
}

button2:  
on (release) {  
getURL (“javascript:open\_window2(‘[http://www.mysite.com/myhtml2.html’,'height=350,width=600,toolbar=no,scrollbars=yes](http://www.mysite.com/myhtml2.html','height=350,width=600,toolbar=no,scrollbars=yes)’)”);  
}

javascript:

\<script language=“javascript”\>  
\<!-- hide it  
function open\_window([http://www.[COLOR=#000000]mysite.com/myhtml[/COLOR].html](http://www.theembers.ca/msgbook.html)) {  
window = window.open(\<A href=“[http://www.mysite.com/myhtml.html,“name”\>http://www.[COLOR=#000000]mysite.com/myhtml[/COLOR].html,"name](http://www.mysite.com/myhtml.html,%22name%22%3Ehttp://www.%5BCOLOR=#000000%5Dmysite.com/myhtml%5B/COLOR%5D.html,%22name)”,‘toolbar=0,location=0,dire ctories=0,status=0,menubar=0,scrollbars=yes,resizable=0,width=600,height=500’);  
}

function open\_window2([http://www.[COLOR=#000000]mysite.com/myhtml2[/COLOR].html](http://www.mysite.com/myhtml2.html)) {  
window2 = window.open(\<A href=“[http://www.mysite.com/myhtml2.html,“name”\>http://www.[COLOR=#000000]mysite.com/myhtml2[/COLOR].html,"name](http://www.mysite.com/myhtml2.html,%22name%22%3Ehttp://www.%5BCOLOR=#000000%5Dmysite.com/myhtml2%5B/COLOR%5D.html,%22name)”,‘toolbar=0,location=0,dir ectories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=500,height=525’);  
}  
// --\>  
\</script\>

I will really appreciate any help given. Thank you so much.
