# TextArea component- remove focus

**URL:** <https://forum.kirupa.com/t/textarea-component-remove-focus/206889>\
**Category:** flash\
**Created:** [November 12, 2006, 9:39pm UTC](https://forum.kirupa.com/t/textarea-component-remove-focus/206889 "2006-11-12T21:39:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nasih](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@nasih](https://forum.kirupa.com/u/nasih)\
**Post date:** [November 12, 2006, 9:39pm UTC](https://forum.kirupa.com/t/textarea-component-remove-focus/206889/1 "2006-11-12T21:39:04Z")

</div>

Hi ,

Just when I leave the scrollbar of the TextArea component from HTML page, the whole text in the Textarea component goes ‘selected’. How can I remove the auto selection while scrolling ?

very simple issue, but troublesome. Please help

//-Below is the script applied------------

[COLOR=“DimGray”]//ta= textarea  
ta.html = true;  
ta.wordWrap = true;  
ta.multiline = true;  
ta.label.condenseWhite=true;

//load css  
XStyle = new TextField.StyleSheet();  
XStyle.load(“style.css”);  
ta.styleSheet = XStyle;

//load in XML  
homeContent = new XML();  
homeContent.ignoreWhite = true;  
homeContent.load(“home.xml”);  
homeContent.onLoad = function(success)  
{  
if(success)  
{  
ta.text = homeContent;  
}  
}  
[/COLOR]

Thanks  
Nasih
