Menu

1 / 2

Before Adding a JavaScript Library, Check What the Browser Can Do

DEV Community: html·James Jeremy Foong·2 days ago
#DKJqhDfN
#devto2#devto#dev#confirm#delete
Long article (674 words) — no AI summary yet.
Reading 0:00
15s threshold

I mostly build frontend web apps. Many of my clients use Microsoft Edge, while engineers I work with use Firefox, so browser support comes up in my day-to-day work.

I've been reading Modern Web Guidance 1.0 , and I found its dialog guide useful. One question stuck with me: should an overlay block the rest of the page, or let people keep working while it is open? That answer changes which browser feature fits.

Version 1.0 went stable on November 10, 2026, with Firefox and Edge joining the cross-browser effort.

Start with the behavior

The guide uses a confirmation dialog as an example. For a destructive confirmation, I check that:

The dialog blocks interaction with the page behind it.

Keyboard focus stays in the dialog and returns to the button that opened it.

Escape closes it.

A visible heading gives it an accessible name.

Focus starts on the safe choice, such as Cancel.

Native <dialog> covers the modal behavior when you open it with showModal() .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.