WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Submitting forms via javascript: Button vs. link vs. other?

for

From: ben morrison
Date: Dec 4, 2009 9:03AM


The discussion was that you should keep a button/submit as its a form
and not use a link....

"what with the current browser support for CSS BUTTON styling you
should be able to
achieve almost any design required, you will loose the :hover state in IE"

ben

On Fri, Dec 4, 2009 at 4:00 PM, Geof Collis < <EMAIL REMOVED> > wrote:
> Still dont get it, I thought the discussion was creating a link to
> look like a button using css.
>
> cheers
>
> Geof
>
> At 10:44 AM 12/4/2009, you wrote:
>>Hi,
>>
>>IE 6 (and below) will only apply  :hover states to ANCHOR elements :)
>>
>>http://kimblim.dk/css-tests/selectors/
>>
>>ben
>>
>>On Fri, Dec 4, 2009 at 3:37 PM, Geof Collis < <EMAIL REMOVED> > wrote:
>> > Hi Ben
>> >
>> > What do you mean "lose the hover state in I?E" ? I use cs hover on my
>> > main links with no problem. Or are we talking 2 differnet issues.
>> >
>> > cheers
>> >
>> > Geof
>> >
>> >
>> >
>> > At 10:09 AM 12/4/2009, you wrote:
>> >>On Fri, Dec 4, 2009 at 2:59 PM, Moore,Michael (DARS)
>> >>< <EMAIL REMOVED> > wrote:
>> >> > We have found usability problems caused for screen reader users
>> >> when links are styled to look like buttons. The basic scenario
>> goes like this.
>> >>...
>> >> >
>> >> > Buttons really need to be buttons.
>> >>
>> >>Exactly, why reinvent what actually works for everyone - what with the
>> >>current browser support for CSS button styling you should be able to
>> >>achieve almost any design required,
>> >>you will loose the :hover state in IE - but its a small price - you
>> >>could always add some JS to insert a simple hover class on rollover if
>> >>client requests...
>> >>
>> >>ben
>> >>--
>> >>Ben Morrison
>> >>