# When focus returns to search box, auto highlight all text

**URL:** <https://meta.discourse.org/t/when-focus-returns-to-search-box-auto-highlight-all-text/33125>\
**Category:** UX\
**Created:** [Setembro 11, 2015, 2:41pm UTC](https://meta.discourse.org/t/when-focus-returns-to-search-box-auto-highlight-all-text/33125 "2015-09-11T14:41:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [Setembro 12, 2015, 6:39am UTC](https://meta.discourse.org/t/when-focus-returns-to-search-box-auto-highlight-all-text/33125/4 "2015-09-12T06:39:31Z")

</div>

Careful I support autofocus if the search term is blank, if it is not blank focusing will lose search position in the page on back which is real bad

---

_[View the full topic](https://meta.discourse.org/t/when-focus-returns-to-search-box-auto-highlight-all-text/33125)._
