# Popup Window: Javascript from out of Flash

**URL:** <https://forum.kirupa.com/t/popup-window-javascript-from-out-of-flash/22375>\
**Category:** programming\
**Created:** [June 3, 2003, 2:14pm UTC](https://forum.kirupa.com/t/popup-window-javascript-from-out-of-flash/22375 "2003-06-03T14:14:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericinho](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@ericinho](https://forum.kirupa.com/u/ericinho)\
**Post date:** [June 3, 2003, 2:14pm UTC](https://forum.kirupa.com/t/popup-window-javascript-from-out-of-flash/22375/1 "2003-06-03T14:14:02Z")

</div>

(F5)

Hi,

I open a popup Window with some javascript in Flash

on (release)  
{ getURL (“javascript:NewWindow=window.open(‘[http://www.url.com/page](http://www.url.com/page). htm’,‘newWin’,‘width=340,height=340,left=0,top=0,t  
oolbar=No,location=No,scrollbars=No,status=No,resi  
zable=No,fullscreen=No’); NewWindow.focus(); void(0);”);  
}

works fine and dandy… however in the Address bar of the main browser window (the one which hosts the SWF file), after clickin the popup button, the entire Javascript string shows…

which is not only ugly, but also a trouble if peeps want to bookmark the site.

Is there a way to fix this/avoid it and if yes, how (like with setURL or changeURL??)?

Thanks!
