# as3 javascript problem PLEASE HELP!

**URL:** https://forum.kirupa.com/t/as3-javascript-problem-please-help/276736
**Category:** Uncategorized
**Created:** [December 3, 2008, 5:34am UTC](https://forum.kirupa.com/t/as3-javascript-problem-please-help/276736 "2008-12-03T05:34:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![evilgandhi](https://avatars.discourse-cdn.com/v4/letter/e/e47c2d/32.png) [@evilgandhi](https://forum.kirupa.com/u/evilgandhi)
#### Post date: [December 3, 2008, 5:34am UTC](https://forum.kirupa.com/t/as3-javascript-problem-please-help/276736/1 "2008-12-03T05:34:20Z")

</div>

hi there heres my problem

this.testBtn.addEventListener(MouseEvent.CLICK, gotowebpage);

function gotowebpage(event:MouseEvent):void {  
var jscommand:String = “window.open(‘[http://www.google.com](http://www.google.com)’,‘win’,‘height=200,width=300,toolba r=no,scrollbars=yes’);”;  
var GOOGLEURL:URLRequest = new URLRequest(“javascript:” + jscommand + " void(0);");  
navigateToURL(GOOGLEURL, “\_self”);  
}

the code above works in firefox but not safari can anyone explain why?

also can anyone tell how i view my previous post cos i can’t seem to find a link to view them.

cheers
