# How to remove setFocus from Input field?

**URL:** <https://forum.kirupa.com/t/how-to-remove-setfocus-from-input-field/268763>\
**Category:** flash\
**Created:** [August 18, 2008, 4:37pm UTC](https://forum.kirupa.com/t/how-to-remove-setfocus-from-input-field/268763 "2008-08-18T16:37:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaimil27](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jaimil27](https://forum.kirupa.com/u/jaimil27)\
**Post date:** [August 18, 2008, 4:37pm UTC](https://forum.kirupa.com/t/how-to-remove-setfocus-from-input-field/268763/1 "2008-08-18T16:37:45Z")

</div>

I basically have a input field inside a movie clip. I want a function so that whenever someone clicks outside the input field, the blinking cursor gets automatically removed.

I tried the following code, but it doesn’t seem to work.

```auto
Selection.setFocus(null);

```

Please help me with this issue!
