# Input text box behavior?

**URL:** <https://forum.kirupa.com/t/input-text-box-behavior/50644>\
**Category:** Uncategorized\
**Created:** [May 5, 2004, 3:54am UTC](https://forum.kirupa.com/t/input-text-box-behavior/50644 "2004-05-05T03:54:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![veraxoxo](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@veraxoxo](https://forum.kirupa.com/u/veraxoxo)\
**Post date:** [May 5, 2004, 3:54am UTC](https://forum.kirupa.com/t/input-text-box-behavior/50644/1 "2004-05-05T03:54:30Z")

</div>

How can I make input text boxes clear themselves of data when a user clicks on them?  
I have a username and password input text box and need them to automatically clear when clicked on in the case where the user has entered an incorrect name/password.
