# 2 Pop-Up Windows

**URL:** <https://forum.kirupa.com/t/2-pop-up-windows/191523>\
**Category:** flash\
**Created:** [June 21, 2006, 4:14am UTC](https://forum.kirupa.com/t/2-pop-up-windows/191523 "2006-06-21T04:14:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tazznchop](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@tazznchop](https://forum.kirupa.com/u/tazznchop)\
**Post date:** [June 21, 2006, 4:14am UTC](https://forum.kirupa.com/t/2-pop-up-windows/191523/1 "2006-06-21T04:14:28Z")

</div>

Is it possible to have two html pop-up windows within flash. Following the tutorial here I have been able to get one pop-up window to work but not two,

Exactly what I am trying to do is that I will have two buttons. When I click on button 1 it will open popup1.html and when I hit button 2 it will open up popup2.html.

This is the actionscript I have in flash currently

on (release) {  
getURL(“JavaScriptpopup();”);  
}

and then the html file will have the following code

\<SCRIPT LANGUAGE=“JavaScript”\>  
function popup() {  
window.open(‘popup1.html’,’’,‘toolbar=no,location= no,directories=no,status=no,menubar=no,scrollbars= no,resizable=no,width=300,height=300,left=300,top= 150’);  
}  
\</script\>

Any help would be great
