Re: How define if javascript is on with php
| From: | Ashley Sheridan | Date: | Sat, 17 Apr 2010 10:37:38 +0000 |
| Subject: | Re: How define if javascript is on with php | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304159@lists.php.net to get a copy of this message | ||
On Sat, 2010-04-17 at 11:43 +0200, Michiel Sikma wrote:
> On 16 April 2010 19:02, tedd <tedd.sperling@gmail.com> wrote:
>
> > At 3:46 PM +0200 4/16/10, Michiel Sikma wrote:
> >
> >> On 16 April 2010 14:06, Paulo-WORK <pauloworkmail@googlemail.com> wrote:
> >>
> >> -snip-
> >>
> >
> > Paulo:
> >
> > I agree. Here's a working example with everything you need:
> >
> > http://sperling.com/examples/javascript-detection/
> >
> > Cheers,
> >
> > tedd
> >
> >
> Another important thing to consider is that the web is meant to be
> accessible to even those using a screen reader. Screen readers don't support
> Javascript (to my knowledge) and instead rely on properly written HTML. By
> having regular content and overriding it with Javascript, you're ensuring
> that the visually impaired, among others, can also use your site.
>
> Michiel
Visually impaired aren't the only people that Javascript poses a problem
for. Consider someone with Arthritis or severe RSI who cannot use a
mouse as easily, if at all, as most people. A lot of Javascript uses
event handlers like onclick and onmouseover, which are specifically
geared towards using a mouse and won't work on a browser that is being
navigated by a keyboard.
Thanks,
Ash
http://www.ashleysheridan.co.uk