Unselect textarea...

I have a bit of JS
  theForm.body.value=theForm.body.value.split(sel).join(url+' ')

that modfiies the contents of a text area, problem is that once its done all the text in the textarea is selected. Is there a way to unselect the textarea automatically when its done?
fox_stattonAsked:
Who is Participating?
 
thirdCommented:
another way is to blur from you field

theForm.body.blur()

but of course blurring will lose focus to your textarea.
0
 
thirdCommented:
try to call

theForm.body.focus()

or focus to any other field on the form.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.