Search Results

Search found 1 results on 1 pages for 'hellfyr'.

Page 1/1 | 1 

  • Change value of textarea when hovering link

    - by hellfyr
    I would like to change the value of a textarea when hovering over a link. I am not very proficient at javascript and do not quite understand the intricacies of 'this.' and 'document.' etc.. Currently I have a textarea 'info' that on page load is unpopulated and two links that should change its value. I can not seem to get it to work.. <textarea name="info"></textarea> <a href="foo.com" onmouseover="document.info.value='foo.com is a great site'">Foo.com</a> <a href="bar.com" onmouseover="document.info.value='bar.com is a terrible site'">Bar.com</a> I'm sure there is a way to accomplish what I need to do but I can't find it. Thanks in advance.

    Read the article

1