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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Value of the textbox 1

Status
Not open for further replies.

mrkyn

MIS
Jan 30, 2002
78
US
I have this:
<input type=&quot;text&quot; name=&quot;From&quot; size=&quot;23&quot; value=&quot;Type your e-mail here&quot;>
What do I need to add to make the text (Type your e-mail here) disappear when you click in the textbox? Thanks a lot!
 
<input type=&quot;text&quot; name=&quot;From&quot; size=&quot;23&quot; value=&quot;Type your e-mail here&quot; onclick=&quot;this.value='';&quot;>

Rick

-----------------------------------------------------------
RISTMO Designs
Arab Church
 
Actually....to make sure people don't get to it from tab and bypass the &quot;click&quot; event, use this:
<input type=&quot;text&quot; name=&quot;From&quot; size=&quot;23&quot; value=&quot;Type your e-mail here&quot; onfocus=&quot;this.value='';&quot;>

Rick

-----------------------------------------------------------
RISTMO Designs
Arab Church
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top