EraCode practice

Accessible focus: programmatically focus an error summary

JavaScriptintermediateMulti-Part

Summary

Practice a small JavaScript accessibility pattern: move keyboard focus to an error summary after validation so screen reader and keyboard users get immediate context.

Problem preview

### Goal Complete the function so that after validation fails, keyboard focus is moved to the error summary. - If is , focus the element with id . - Do nothing if there are no errors. - Assume the el…

Attempt this challenge

Sign in to attempt the full challenge with timed AI grading, hints, and test feedback.

Accessible focus: programmatically focus an error summary | JavaScript practice | EraCode