# Selection.setFocus Doesn't Work In Browser!

**URL:** https://forum.kirupa.com/t/selection-setfocus-doesnt-work-in-browser/244272
**Category:** Uncategorized
**Created:** [November 15, 2007, 8:05pm UTC](https://forum.kirupa.com/t/selection-setfocus-doesnt-work-in-browser/244272 "2007-11-15T20:05:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mrwizzer](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mrwizzer](https://forum.kirupa.com/u/mrwizzer)
#### Post date: [November 15, 2007, 8:05pm UTC](https://forum.kirupa.com/t/selection-setfocus-doesnt-work-in-browser/244272/1 "2007-11-15T20:05:18Z")

</div>

Ok, very frustrating.

Selection.setFocus(“myText”);

Sets the focus to my text field with instance name myText perfectly in the Flash test window.

BUT… when viewed in a browser – NO GOOD!

Doesn’t set the focus to my text field. No blinking cursor. The user has to click in the text field box, which disrupts other code in my file.

Anyone know the fix?

Thanks!
