# Javascript

**URL:** <https://forum.kirupa.com/t/javascript/182343>\
**Category:** Uncategorized\
**Created:** [March 17, 2006, 8:33am UTC](https://forum.kirupa.com/t/javascript/182343 "2006-03-17T08:33:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudhanshu](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sudhanshu](https://forum.kirupa.com/u/sudhanshu)\
**Post date:** [March 17, 2006, 8:33am UTC](https://forum.kirupa.com/t/javascript/182343/1 "2006-03-17T08:33:06Z")

</div>

If anybody knows the javascript which writes description to a specified area of webpage, of a link, as soon as we bring the mouse pointer over the link.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![sudhanshu](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sudhanshu](https://forum.kirupa.com/u/sudhanshu)\
**Post date:** [April 6, 2006, 7:58pm UTC](https://forum.kirupa.com/t/javascript/182343/2 "2006-04-06T19:58:48Z")

</div>

> [@Ankou](#):
>
> ```auto
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
> <head>
> <title>JS Test</title>
> <script type="text/javascript">
> <!-- For Example 1 -->
> function showDescription(ourDesc){
> document.showDesc.fullDesc.value = ourDesc;
> }
> 
> <!-- For Example 2 -->
> function showDescriptionA(ourDesc){
> document.getElementById('anotherFullDesc').innerHTML = ourDesc;
> }
> </script>
> </head>
> <body>
> <!-- Example 1 -->
> <form name="showDesc">
> <textarea name="fullDesc"></textarea>
> </form>
> <a href="http://www.google.com" onmouseover="showDescription('Visit Google')"; onmouseout="showDescription('')" title="Google">Google</a>
> 
> <!-- Example 2 -->
> <div id="anotherFullDesc">&nbsp;</div>
> <a href="http://www.google.com" onmouseover="showDescriptionA('Again Visit Google')"; onmouseout="showDescriptionA('&nbsp;')" title="Google">Google</a>
> 
> </body>
> </html>
> 
> ```
> 
> Not sure where you want to write a description to so here’s 2 (simple) examples. The first example writes to a textarea field and the second to a DIV using getElementById.

I GOT IT,Thanks alot for that… 🙂
