# Click buttons with out losing text focus

**URL:** https://forum.kirupa.com/t/click-buttons-with-out-losing-text-focus/190279
**Category:** Uncategorized
**Created:** [June 9, 2006, 11:42pm UTC](https://forum.kirupa.com/t/click-buttons-with-out-losing-text-focus/190279 "2006-06-09T23:42:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BlackBeltNinja](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/blackbeltninja/32/1180_2.png) [@BlackBeltNinja](https://forum.kirupa.com/u/BlackBeltNinja)
#### Post date: [June 9, 2006, 11:42pm UTC](https://forum.kirupa.com/t/click-buttons-with-out-losing-text-focus/190279/1 "2006-06-09T23:42:53Z")

</div>

does anyone know how I can set up my buttons so that when I click on them I don’t lose the selected text in my input text box? Basicly, I have a text input area, and I select half the text in that input area, and then I click a button. How do I keep that text selected?
