# Using a list box to hyperlink?

**URL:** <https://forum.kirupa.com/t/using-a-list-box-to-hyperlink/114519>\
**Category:** Uncategorized\
**Created:** [June 29, 2004, 12:10pm UTC](https://forum.kirupa.com/t/using-a-list-box-to-hyperlink/114519 "2004-06-29T12:10:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harvard](https://avatars.discourse-cdn.com/v4/letter/h/bcef8e/32.png) [@Harvard](https://forum.kirupa.com/u/Harvard)\
**Post date:** [June 29, 2004, 12:10pm UTC](https://forum.kirupa.com/t/using-a-list-box-to-hyperlink/114519/1 "2004-06-29T12:10:56Z")

</div>

I’ve got two list boxes on a Flash made site, and I want them to open up a browser window and go to the specified site.

Currently, when I click on a button to open the site, it goes to the root folder with a erroneous folder name (called NaN).

This is what I have:

```auto
on (release){
	newSite = l-net_links.text
	
	if (newSite == "J-Mod") 
	{
		newSite = ("http://www.google.co.uk") ;
	}
	getURL(newSite, "_blank")
}

```

I tried this code on a combo box, and it worked fine … but I would prefer a listbox for design purposes
