Invoker commands
type: TechArticle
description: Wire a button to open a popover, close a dialog, or run a custom action declaratively with command and commandfor — no click handler, no ARIA plumbing.
language: en
is part of: Web Specification Studio
author: Web Specification Studio
publisher: Web Specification Studio
license: https://creativecommons.org/licenses/by/4.0/
date modified: 2026-07-06T00:00:00.000Z
citation: HTML Standard — The button element (command, commandfor)
  type: CreativeWork
  publisher: WHATWG
citation: HTML Standard — CommandEvent
  type: CreativeWork
  publisher: WHATWG
citation: MDN — Invoker Commands API
  type: CreativeWork
  publisher: MDN
citation: Open UI — Invokers explainer
  type: CreativeWork
  publisher: Open UI

Web Specification Studio
type: WebSite

Web Specification Studio
type: Organization

breadcrumb
type: BreadcrumbList
item list element: Home
  type: ListItem
  position: 1
  item: https://webspecification.com/
item list element: Spec
  type: ListItem
  position: 2
  item: https://webspecification.com/spec/
item list element: Foundations
  type: ListItem
  position: 3
  item: https://webspecification.com/spec/foundations/
item list element: Invoker commands
  type: ListItem
  position: 4
  item: https://webspecification.com/spec/foundations/invoker-commands/