Standard L: Scripts

When webpages utilize scripting languages to display content, or to create interface elements, the information provided by the script shall be identified with functional text that can be read by assistive technology.


You should generally stay away from using scripts (most notably JavaScript) to generate important content. If you decide to do so, you should at the very least make the content generated by the script accessible. A more stringent requirement is to turn off JavaScript in your browser, and see if your website retains its core meaning and navigational elements.

Keep in mind that JavaScript should enhance content and not replace it. All webpages at Cal State L.A. should be able to function normally if scripting is turned off. Go to the Tools for Testing page for tools to test JavaScript accessibility. Visit the Tutorials page for links to information on how to create accessible JavaScript.