# GetURL from Combobox

**URL:** https://forum.kirupa.com/t/geturl-from-combobox/239144
**Category:** Uncategorized
**Created:** [September 19, 2007, 1:27am UTC](https://forum.kirupa.com/t/geturl-from-combobox/239144 "2007-09-19T01:27:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![woodman650](https://avatars.discourse-cdn.com/v4/letter/w/b9bd4f/32.png) [@woodman650](https://forum.kirupa.com/u/woodman650)
#### Post date: [September 19, 2007, 1:27am UTC](https://forum.kirupa.com/t/geturl-from-combobox/239144/1 "2007-09-19T01:27:36Z")

</div>

Hey all,

I’ve got a combobox that I’d like to have labels in, that like to full URLs… but I’m not having much luck. This is the code I’m using:

```auto
 
// 1
mylist.addItem("Google","www.google.com");
mylist.addItem("Yahoo","www.yahoo.com");
mylist.addItem("MSN","www.msn.com");
// 2
function displayDetails(c){
 getURL("[http://"+c.target.data](http://%22+c.target.data/), "_blank");
 trace("Value changed to " + c.target.data);
}
// 3
mylist.setChangeHandler("displayDetails");

```

The labels appear but the links won’t go through… any idea?
