Subject:
|
Re: New homepage for LUGNET part 4
|
Newsgroups:
|
lugnet.admin.suggestions
|
Date:
|
Fri, 22 Dec 2006 14:59:38 GMT
|
Viewed:
|
7763 times
|
| |
| |
In lugnet.admin.suggestions, Rene Hoffmeister wrote:
|
|
- Having pre-existing text in search boxes. Uh, I hate that. :)
|
Normally, me too. And though it is against WCAG, I also will try without it
in #7.
|
Change
<label for="query">Search for: </label></span>
<input type="text" name="query" value="Search LUGNET" size="16" maxlength="200" id="query" />
|
|
to
<label for="query" accesskey="s">Search for: </label></span>
<input type="text" name="query" value="Search LUGNET" size="16" maxlength="200" id="query" onfocus="this.value = '';" onclick="this.value = '';" />
|
|
The onclick/onfocus erase the text. The accesskey attribute lets people type s
to give the search box focus if they have accessibility issues. You might have
to move the accesskey to the field itself; I dont remember if putting it on a
label still gives the field focus.
|
|
Message is in Reply To:
24 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|