---
title: "Invoker commands 😍"
url: https://daily.dev/posts/invoker-commands--bwjwzxyy0
source_url: https://www.youtube.com/watch?v=sZnP4PYySfI
type: video:youtube
source: "Kevin Powell"
published: 2026-05-14T13:13:47.914Z
updated: 2026-05-14T13:19:07.582Z
tags: ["javascript", "html", "web-components"]
reading_time: 1
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Invoker commands 😍

**[Kevin Powell](https://daily.dev/sources/kevinpowell)** · 1 min read · 0 upvotes · 0 comments

## Summary

Invoker commands have reached Baseline newly available status, enabling developers to open and close dialog elements directly from HTML without JavaScript. Using the `command` and `commandfor` attributes on buttons, you can trigger `show-modal` and `close` actions on a `<dialog>` element, eliminating the need for JavaScript event listeners and method calls like `showModal()` and `close()`.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=sZnP4PYySfI>

## Similar posts on daily.dev

- [HTML Invoker Commands Achieve Baseline Support Across All Major Browsers](https://daily.dev/posts/html-invoker-commands-achieve-baseline-support-across-all-major-browsers-luvyny0hj) · InfoQ · 0 upvotes · 0 comments
- [CSS Wrapped 2025](https://daily.dev/posts/css-wrapped-2025-tcohuvuoq) · Una Kravets · 279 upvotes · 7 comments
- [Invoker Commands API - Web APIs](https://daily.dev/posts/invoker-commands-api---web-apis-ejs8qviez) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#html](https://daily.dev/tags/html), [#web-components](https://daily.dev/tags/web-components)

[View this post on daily.dev](https://daily.dev/posts/invoker-commands--bwjwzxyy0)
