Jump Menus That Trigger a Page Change Using JavaScript Event Handlers
WCAG Focus: WCAG 3.2.2 (A)
WordPress Category and Archive dropdown widgets often attach an onchange JavaScript handler to a <select> menu so picking an option immediately navigates to a new URL. When a keyboard user presses the Down Arrow key to browse the dropdown options, the very first option fires onchange and navigates away before they can reach the second item.
Why This Pattern Violates WCAG
WCAG 3.2.2 On Input (Level A) prohibits changing the context (such as navigating to a new page) automatically when a user changes the setting of a UI component without confirmation.
Code Comparison
Inaccessible Auto-Navigating Select Menu
<select onchange="if (this.value) window.location.href = this.value;">
<option value="">Select Category</option>
<option value="/category/news/">News</option>
<option value="/category/guides/">Guides</option>
</select>
Compliant Select With Explicit Go Button
<form action="/archives/" method="get">
<label for="cat-select">Browse by Category</label>
<select id="cat-select" name="cat">
<option value="news">News</option>
<option value="guides">Guides</option>
</select>
<button type="submit">Go</button>
</form>
How to Fix It in WordPress
- Remove onchange navigation handlers from <select> jump menus.
- Pair category or archive dropdowns with a standard submit button ("Go" or "Filter").
Finding This Issue Automatically
Classic WordPress Category and Archive widgets famously default to onchange redirect dropdowns. The WP ADA Compliance Check plugin detects jump menus using JavaScript page-change handlers across your sidebars and templates so you can add a simple submit button.
WCAG References & Supporting Materials
WCAG Success Criteria
Supporting Documentation & Guides
- W3C Failure F36: Automatically submitting a form without prior warning — Covers select jump menus and form controls that change context unexpectedly on input.
- W3C Technique H84: Using a submit button with a select element — Requiring explicit user confirmation instead of onchange page redirects.
Subscribe
Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

