Textfield as Weblink

How do I turn a textfield into a Webpage link and is there a special way to save the link.

What I mean is that is if when the app is running there is a textfiled displaying a url, how do I make the url go to the webpage when someone clicks on it.

Thanks

Well, I think we’ll need more information…

First, is this a web application or a standard UI application?
Also, when you state ‘… make the URL go to the webpage when someone clicks on it’… are you specifying doing so internally via an HTML viewer, or having their browser pop up and display the page?

It is a desktop application and it would bring up the users web browser.

Thanks

In the textfield ‘mouseDown’ event, put the following:

showUrl(me.text)

Thanks Eric.

Also what would I put to bring up an email client the same way.

I think you’d put something like:

[code]dim targetEmailAddress as string

targetEmailAddress = “somebody@somewhere.com

showUrl(“mailto:” + targetEmailAddress)[/code]

[quote=125236:@Eric Brown]In the textfield ‘mouseDown’ event, put the following:

showUrl(me.text)[/quote]

Is there a way to make this so the mouse has to be clicked to activate it.

In the textfield ‘mouseDown’ event, put the following:

return true

In the textfield ‘mouseUp’ event, put the following:

showUrl(me.text)

Thanks Eric, appreciated.