W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2004

Dropdown menu and OnFocus events

From: David Quinton <davidq@BizOrg.co.uk>
Date: Fri, 27 Aug 2004 15:04:25 +0100
Message-Id: <>
To: w3c-wai-ig@w3.org

I'm designing Drop-down menus (client insists!) and we're making sure that 
the top button (the one that mouseover/onFocus will cause the dropdown to 
dropdown) will go to an intermediate page in case of browser 
incompatability / JS not enabled etc. We'll also use the [Alt] accesskeys 
for these.

The table cell which contains the drop-down table has an onMouseover which 
ensures that the dropdown stays displayed if mouse is over it.

Bobby advises that there should be an OnFocus event handler too - for those 
without mice. So I added one.

Now the page fails the W3.org validator for 4.01 Transitional because 
onFocus isn't allowed in a <td>.

The only way out of this that I can think of is to use an image in each of 
the cells of the dropdowns and have them enclosed by <a>...</a> (onFocus IS 
allowed in <a>...</a>).

But I don't really want to have images - text is quite adequate...


Received on Friday, 27 August 2004 14:04:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:29 UTC