# Javascript popup window with AS3.0

**URL:** https://forum.kirupa.com/t/javascript-popup-window-with-as3-0/271528
**Category:** Uncategorized
**Created:** [September 24, 2008, 7:47am UTC](https://forum.kirupa.com/t/javascript-popup-window-with-as3-0/271528 "2008-09-24T07:47:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![deluxmilkman](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@deluxmilkman](https://forum.kirupa.com/u/deluxmilkman)
#### Post date: [September 24, 2008, 7:47am UTC](https://forum.kirupa.com/t/javascript-popup-window-with-as3-0/271528/1 "2008-09-24T07:47:28Z")

</div>

hi, i`m trying to open a popup window from flash.

this is what I have in HTML.

```auto

function WindowOpen(url, name) {
	window.open(url, name, "width=900, height=600, resizable=no, scrollbars=no");
}

```

and this is what I have in flash

```auto

function clickLINK(e:MouseEvent):void {
 var jscommand:String = "WindowOpen('http://www.adobe.com','win');"; 
 var request:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);"); 
 navigateToURL(request, "_blank");

 }

```

why is this not working?  
help me please.
