Hey guys

I have a textarea on my page and images at the bottom. I want to use some javascript that when you click on the image, it inserts it into the text area with the ID txtEntry.

Like emoticons on forums.

I dnt no much about javascript. Please help me.

Thanks for any feedback

this is what ive tried so far:
<a href="javascript:insert_link()"><img src="link"></a>

<script type="text/javascript" language="javascript">
function insert_link()
{
var link = 'test';

document.Form1.txtEntry.value+=link;

}

}
</script>