When a modal dialog closes, where should the focus be returned?

Prepare for the CIW User Interface Designer Test. Utilize flashcards and multiple choice questions, each supplemented with helpful hints and detailed explanations. Boost your exam readiness!

Multiple Choice

When a modal dialog closes, where should the focus be returned?

Explanation:
Managing focus is about keeping the user’s place in the task. When a modal dialog closes, you should return focus to the element that opened it—the triggering element—so the user can seamlessly continue from where they started. This preserves context for keyboard and screen reader users and avoids disorientation that would happen if focus jumped elsewhere or stayed inside the now-closed dialog. If the triggering element is no longer available, fall back to a sensible target, like the next actionable control on the page. For example, if a Delete button opens a confirmation modal, closing that modal should put the focus back on that Delete button so the user can either proceed or cancel and continue with their previous actions.

Managing focus is about keeping the user’s place in the task. When a modal dialog closes, you should return focus to the element that opened it—the triggering element—so the user can seamlessly continue from where they started. This preserves context for keyboard and screen reader users and avoids disorientation that would happen if focus jumped elsewhere or stayed inside the now-closed dialog. If the triggering element is no longer available, fall back to a sensible target, like the next actionable control on the page.

For example, if a Delete button opens a confirmation modal, closing that modal should put the focus back on that Delete button so the user can either proceed or cancel and continue with their previous actions.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy