WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: JavaScript to increase/decrease font size

for

Number of posts in this thread: 2 (In chronological order)

From: Estelle Weyl
Date: Sun, Jan 16 2005 8:32PM
Subject: JavaScript to increase/decrease font size
No previous message | Next message →

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

From: Joshue O'Connor
Date: Mon, Jan 17 2005 3:00AM
Subject: Re: JavaScript to increase/decrease font size
← Previous message | No next message

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 ADDRESS 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/