# getURL (variable, \_blank) - How To?

**URL:** <https://forum.kirupa.com/t/geturl-variable--blank-how-to/204126>\
**Category:** flash\
**Created:** [October 17, 2006, 10:34am UTC](https://forum.kirupa.com/t/geturl-variable--blank-how-to/204126 "2006-10-17T10:34:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![parchow](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@parchow](https://forum.kirupa.com/u/parchow)\
**Post date:** [October 17, 2006, 10:34am UTC](https://forum.kirupa.com/t/geturl-variable--blank-how-to/204126/1 "2006-10-17T10:34:44Z")

</div>

I got the following variable:

```auto
gArray[cur]

```

```auto
trace (gArray[cur])  

```

returnes the path for the current Picture  
ex: “…/picture/mycurrentpicture.jpg”

I have a button saying this:

```auto
mybutton.onPress = function() {
      getURL ('javascript:Open(gArray[cur])');
}

```

And it doesn’t work!  
(javascript:Open defines a popUp window)  
Why? Can anyone give me a hand please?

Marc06
