2.02.06 JavaScript usage: Summary
In conclusion
There is nothing inherently wrong with using JavaScript to enhance the user experience. As long as it's done wisely and with care. Ensure that all content, and navigation, are still available when scripting is not enabled.
This can be achieved in a number of ways:
- Use a
<noscript> ... </noscript>section to display content or navigation if scripting is unavailable. - Possibly use a server-side script returning an updated page to the client.
If the page has programmatic objects, such as Flash or Java applets, then their must be some form of alternative text that explains what the object does (its function). Additionally, all important and unique content must be captured elsewhere on the site in an accessible format that can be understood by assistive technologies.