# Javascript & popup window

**URL:** <https://forum.kirupa.com/t/javascript-popup-window/257020>\
**Category:** Uncategorized\
**Created:** [April 9, 2008, 4:10pm UTC](https://forum.kirupa.com/t/javascript-popup-window/257020 "2008-04-09T16:10:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schammy79](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@schammy79](https://forum.kirupa.com/u/schammy79)\
**Post date:** [April 9, 2008, 4:10pm UTC](https://forum.kirupa.com/t/javascript-popup-window/257020/1 "2008-04-09T16:10:54Z")

</div>

I am trying to open a popup window from flash, using javascript, so I can control the size, etc.  
Right now, I have the code below, but when I test my swf in flash, I get an IE window that says : “Internet Explorer cannot download. Unspecified error”. And of course, if I test the movie in IE, nothing happens at all. 😟  
I thought about ExternalInterface, but I don’t know, maybe I’m missing something, it did not work either.  
Any help, PLS???

```auto
 
var js:URLRequest=new URLRequest();
js.url="javascript:window.open('http://www.adobe.com','win','width=500,height=400');newWindow.focus(); void(0);";
 
function openPOPUP(e:MouseEvent):void {
{
 navigateToURL(js,'_blank');
}

```
