Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input text 1

Status
Not open for further replies.

essentialDF

Technical User
Jan 12, 2005
31
Is there a way to clear the text in an input box just by clicking in it?

For instance I have an input box with text in it that reads "email address here", so when the user clicks in the box, I'd like that text to disappear.

Does that make sense?

Thanks.
 
myInput.text = "email address";
myInput.onSetFocus = function(){
myInput.text = "";
};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top