Developer Checklist — JavaScript Appendices

Correct code

JS_G_A8: Use an expandable/collapsible menu to bypass blocks of content

This example shows how a simple show/hide mechanism can be used to help users bypass blocks of content. This is particularly useful for keyboard users, because it helps them to quickly bypass repeated content, such as navigation, without having to Tab through all the individual links.

Live Demo

Click the button inside the heading to hide and show the list:

Weather and Warnings in your area

JavaScript Code

The JavaScript code for this example can be found in: JS_G_A8.js