# F5 - Variables in the GetURL Function?

**URL:** <https://forum.kirupa.com/t/f5-variables-in-the-geturl-function/21320>\
**Category:** flash\
**Created:** [May 20, 2003, 9:00am UTC](https://forum.kirupa.com/t/f5-variables-in-the-geturl-function/21320 "2003-05-20T09:00:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![417north](https://avatars.discourse-cdn.com/v4/letter/4/50afbb/32.png) [@417north](https://forum.kirupa.com/u/417north)\
**Post date:** [May 20, 2003, 9:00am UTC](https://forum.kirupa.com/t/f5-variables-in-the-geturl-function/21320/1 "2003-05-20T09:00:03Z")

</div>

Does anyone know how to put a variable in the getURL function?

What I’m looking to do is something like this, but I’m not sure of the syntax:

function viewLarger (imgID) {  
getURL (“javascript:spawn(’\_tombstones/index.php?id=(imgID)’,‘tombstone’,216,245,‘no’)”);  
}

By the way, the spawn code is just a javascript function to load a popup.

I’m sure that this is possible, right? I’m just not the world’s best syntax-guy. I don’t know exactly how to write this.

Any help?

G

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 22, 2003, 1:23am UTC](https://forum.kirupa.com/t/f5-variables-in-the-geturl-function/21320/2 "2003-05-22T01:23:12Z")

</div>

um, try this:

```auto
getURL("javas**cript:spawn('_tombstones/index.php?id="+imgID+"','tombstone',216,245,'no')");

```

and if that doesn’t work try this:

```auto
fscommand("spawn('_tombstones/index.php?id="+imgID+"','tombstone',216,245,'no')");

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 22, 2003, 2:06am UTC](https://forum.kirupa.com/t/f5-variables-in-the-geturl-function/21320/3 "2003-05-22T02:06:22Z")

</div>

Thanks man. I’ll check it out and let you know.

Word.  
Greg
