# Calling one Javascript?

**URL:** <https://forum.kirupa.com/t/calling-one-javascript/167272>\
**Category:** Uncategorized\
**Created:** [October 26, 2005, 7:48pm UTC](https://forum.kirupa.com/t/calling-one-javascript/167272 "2005-10-26T19:48:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![this](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/this/32/669_2.png) [@this](https://forum.kirupa.com/u/this)\
**Post date:** [October 26, 2005, 7:48pm UTC](https://forum.kirupa.com/t/calling-one-javascript/167272/1 "2005-10-26T19:48:27Z")

</div>

well … i create one button that will call one [color=royalblue]Javascript in HTML[/color] file.  
the button has the code:

> on(release) {  
> getURL(“javascript:openLocal();”);  
> }

i try too:

> on(release) {  
> getURL(“openLocal()”);  
> }

and

> this.onRelease = function() {  
> getURL(“javascript:openLocal();”);  
> }

and all not work…

in HTML FILE has the code js:

> \<script\>  
> function openLocal() {  
> local = window.open(“localizacao.html”,“Local”,“width=630, height=390”);  
> }  
> \</script\>

anyone know how call one js from flash !  
scuza the newbie question… and thanks in advance.
