WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: JavaScript to increase/decrease font size

for

From: Joshue O'Connor
Date: Jan 17, 2005 3:00AM


Hi Estelle,

It is OK to use Javascript as long as you provide a non-Javascript
alternative for user agents that dont use it. Another suggestion
for your font size problem would be to use relative font sizes (ems)
in your CSS. This means that the client can easily change the font size
themselves without the use of Javasript.

Hope this helps

Josh O Connor
CFIT Ireland

-----Original Message-----
From: estellevw [mailto: <EMAIL REMOVED> ]
Sent: 17 January 2005 03:34
To: WebAIM Discussion List
Subject: [WebAIM] JavaScript to increase/decrease font size



I just coded a template for a new site and included a javascript to allow
users to increase and decrease the font size of the main content. The URLs
for these pages are http://www.508.biz and http://www.508.biz/who.htm.

Is it ok to use Javascript in such a manner? It is directly accessible, but
I can't provide a non-JavaScript alternative.

Feedback on the accessibility of those two pages would be greatly
appreciated.

Thanks.

Estelle Weyl
http://www.EstelleWeyl.com
415.845.9906

----
To subscribe or unsubscribe, visit http://www.webaim.org/discussion/