WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Include default text?

for

From: Steven Faulkner
Date: Oct 21, 2004 3:49PM




If want to include default place holders, you can use JavaScript to clear a
field of its default text on focus.

Example:
<input type="text" size="3" value="default text"
onfocus="if(this.value=='default text'){this.value=''}" />



with regards

Steven Faulkner
Web Accessibility Consultant
National Information &amp; Library Service (NILS)
454 Glenferrie Road
Kooyong Victoria 3144
Phone: (613) 9864 9281
Fax: (613) 9864 9210
Email: <EMAIL REMOVED>

National Information Library Service
A subsidiary of RBS.RVIB.VAF Ltd.