# Clickable text in textarea possible?

**URL:** <https://forum.kirupa.com/t/clickable-text-in-textarea-possible/320265>\
**Category:** flash\
**Created:** [March 18, 2011, 2:11pm UTC](https://forum.kirupa.com/t/clickable-text-in-textarea-possible/320265 "2011-03-18T14:11:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simranzenov](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@simranzenov](https://forum.kirupa.com/u/simranzenov)\
**Post date:** [March 18, 2011, 2:11pm UTC](https://forum.kirupa.com/t/clickable-text-in-textarea-possible/320265/1 "2011-03-18T14:11:08Z")

</div>

I want to add an event listener to each word inside the textarea. Is this possible?

I have a function that shows a list of inventory items in a game I’m making. I put the list inside a textarea so that I can scroll through the inventory, but I want to be able to allow the user to click on each item.

For Example:

* * *

## Potion Antidote Sword Shield blah blah blah

Is it possible to make this text clickable or will I have to make a custom scrollbar that scrolls clickable movieclips? Thank you in advance. :pleased:

edit:  
Is there a way to access the index of each row within the textarea? This might be what I need.
