# Javascript popup limitation?

**URL:** <https://forum.kirupa.com/t/javascript-popup-limitation/41001>\
**Category:** flash\
**Created:** [January 24, 2004, 1:15pm UTC](https://forum.kirupa.com/t/javascript-popup-limitation/41001 "2004-01-24T13:15:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mooler](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mooler](https://forum.kirupa.com/u/mooler)\
**Post date:** [January 24, 2004, 1:15pm UTC](https://forum.kirupa.com/t/javascript-popup-limitation/41001/1 "2004-01-24T13:15:59Z")

</div>

Hi attaching the fla. It´s a meny with a MC and inside the MC another MC and inside that a button.

Now as I´ve always done before I used this AS to make the pop up. This is the button code.

[AS]  
on (press) {  
\_parent.gotoAndPlay(“out”);  
}  
on (release) {  
getURL(“javaScript:popup();”);  
}  
[/AS]

And of course this in the html page

[AS]  
\<SCRIPT LANGUAGE=“JavaScript”\>  
function popup() {  
window.open(“popup.html”,"",“height=500,width=700,scrollbars=yes,left=0,top=0”);  
}  
\</script\>  
[AS]

I thougt the javascript was “global” or I´m I missing something.

_edit_ the "about in my on (release) code is supposed to be Javascript don´t now why it interpret it to about?
