Add a link to a textarea

Hi,
I have a textarea (tiny-mce).
I want to a link to the textarea, so when the user clicks on it (in the textarea) it will invoke my javascript function (or any other URL).
VapiSoftAsked:
Who is Participating?
 
BurniePCommented:
Hi,

What control are you using?  You do not seem to be using the <textarea></textarea> control.  I tried adding an a href inside a textarea control and it will not render as a link.  In your picture I can see some kind of custom control.

Also, maybe you can try putting the events directly in the a href.  
Example :
<a href="..." onmouseover="this.style.cursor='pointer'" onmouseout="this.style.cursor='default'" onclick="window.open('google.com')">Click to upgrade Chrome</a>

This is a blinded guess.
0
 
Aaron TomoskySD-WAN SimplifiedCommented:
The txt area has an onclick() event.
0
 
VapiSoftAuthor Commented:
I don't want to get a click anywhere, I want to see a link (blue with underline and a hand when the cursor on it), and that when I click on it, it will go to the url (just like reguar link).
Currently, I add the '<a href="...">text</a>'
It shows the link (blue with underline), but when I put the cursor on it it does not show the hand, and the click does not do anything.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
VapiSoftAuthor Commented:
See the picture.
ScreenShot-4737.jpg
0
 
Michel PlungjanIT ExpertCommented:
Would that not be very annoying since you would then not be able to edit it.
0
 
VapiSoftAuthor Commented:
It works.
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.