anjapcodes's profile
Anja Petry@anjapcodes•Dec 08, 2025
47.9K
Post cover image

Controlling dialogs and popovers with the Invoker Commands API

From htmhell.dev•Dec 08, 2025•7m read time

The Invoker Commands API introduces `command` and `commandfor` attributes to HTML buttons, enabling control of dialogs and popovers without JavaScript. Built-in commands include `show-modal`, `close`, and `request-close` for dialogs, plus `show-popover`, `hide-popover`, and `toggle-popover` for popovers. Custom commands prefixed with `--` allow developers to extend functionality beyond the built-in options. Available in Chrome 135+, Edge 135+, Opera 120+, Firefox 144+, and Safari Technology Preview, with a polyfill for older browsers.

Sort:

anjapcodes's user avatar
Anja Petry
@anjapcodes
Joined Nov 5. 2022
47.9K

< Self-taught front-end developer + coding bootcamp grad, tech enthusiast + design lover + poet />

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard