# Login input text defaults

**URL:** <https://forum.kirupa.com/t/login-input-text-defaults/311987>\
**Category:** Uncategorized\
**Created:** [July 21, 2010, 9:56pm UTC](https://forum.kirupa.com/t/login-input-text-defaults/311987 "2010-07-21T21:56:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![inconceivable](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@inconceivable](https://forum.kirupa.com/u/inconceivable)\
**Post date:** [July 21, 2010, 9:56pm UTC](https://forum.kirupa.com/t/login-input-text-defaults/311987/1 "2010-07-21T21:56:36Z")

</div>

i am trying to have a login text field that has default text in it which disappears when a user clicks in the text box. i’ve tried every solution on this forum and it seems to get the default text in the box but i can;t get it to disappear when curser clicks in box.

currently:

userText.text = “username”;  
userText.onSetFocus = function(){  
userText.text = “”;  
}
