WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Include default text?

for

From: Patrick H. Lauke
Date: Oct 21, 2004 4:45PM


steven.faulkner wrote:
>
>
> If want to include default place holders, you can use JavaScript to clear a
> field of its default text on focus.
and users without javascript still have to manually empty the field
(albeit most user agents will put a selection around the entire current
content of a text entry field when you access it, allowing to
wipe/overwrite it by simply typing). How about the reverse: having the
input empty at first, with the "default" in the title, then use
javascript attached to the onload event to both prepopulate the elements
and add the onfocus functionality?

Patrick H. Lauke
_____________________________________________________
re