<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/invoking-elements-by-using-only-html-a-first-look-at-invokers-x71ys6ksc" -->

---
title: Invoking elements by using only HTML: A first look at...
description: An experimental HTML feature called invokers is explored, which lets developers trigger actions like opening dialogs, popovers, details elements, date/file...
canonical: https://daily.dev/posts/invoking-elements-by-using-only-html-a-first-look-at-invokers-x71ys6ksc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Invoking elements by using only HTML: A first look at invokers | daily.dev
og:description: An experimental HTML feature called invokers is explored, which lets developers trigger actions like opening dialogs, popovers, details elements, date/file...
og:url: https://daily.dev/posts/invoking-elements-by-using-only-html-a-first-look-at-invokers-x71ys6ksc
og:image: https://api.daily.dev/og/posts/X71ys6KSc.png
og:image:alt: Invoking elements by using only HTML: A first look at invokers
og:image:width: 1200
og:image:height: 630
og:locale: 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.

# Invoking elements by using only HTML: A first look at invokers

**[utilitybend](https://daily.dev/sources/utilitybend)** · 11 min read · 0 upvotes · 0 comments

## Summary

An experimental HTML feature called invokers is explored, which lets developers trigger actions like opening dialogs, popovers, details elements, date/file pickers, number input steppers, and video/audio controls purely through HTML button attributes (invoketarget and invokeaction), without JavaScript. Behind a flag in Chrome Canary at the time of writing, the feature originated from a 2018 GitHub issue about the dialog element's lack of native modal triggering. Examples cover showModal/close actions for dialogs, togglePopover/showPopover/hidePopover for popovers, toggle/open/close for details, showPicker for date/color/file inputs and select elements, stepUp/stepDown for number inputs, and play/pause/toggleMuted/toggleFullscreen for media elements. Custom JavaScript events can also be dispatched via hyphenated invokeaction names. The piece notes this is an early look, with a later update article covering further changes to the spec.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://utilitybend.com/blog/invoking-elements-by-using-only-html-a-first-look-at-invokers>

## Questions this post answers

### How do I open a dialog element using only HTML with invokers?

Add an invoketarget attribute on a button referencing the dialog's id, such as button invoketarget='my-modal' paired with dialog id='my-modal'. This opens the dialog in the top layer as a modal with the ::backdrop pseudo-element attached automatically, with no JavaScript required. Add invokeaction='close' on another button to close it. This was experimental behind Chrome Canary's Experimental Web Platform features flag.

_daily.dev surfaces experimental web platform features like this for developers tracking new HTML capabilities._

### What invokeaction values work with input type=date, file, and number elements using HTML invokers?

The showPicker action opens the native picker for date, color, file, select, and datalist-backed inputs when triggered from a button's invoketarget/invokeaction attributes. For number inputs, stepUp and stepDown invoke actions increment or decrement the value while respecting min, max, and step attributes, enabling custom stepper buttons without JavaScript, though a change event caveat existed for stepper clicks.

_developers building custom form controls can follow daily.dev for updates on evolving HTML input capabilities._

### What events can I trigger on a video element using HTML invoker attributes?

Buttons using invoketarget referencing a video element's id support invokeaction values including play, pause, playpause (toggles between play and pause), toggleMuted, and toggleFullscreen, allowing custom video controls built with plain HTML and CSS rather than JavaScript event wiring. A CSS class toggle via JavaScript was still needed to style play state since the :playing pseudo-class lacked universal support.

_daily.dev helps developers stay current on experimental media control APIs like this before they stabilize._

## Similar posts on daily.dev

- [CSS Wrapped 2025](https://daily.dev/posts/css-wrapped-2025-tcohuvuoq) · Una Kravets · 277 upvotes · 7 comments
- [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
- [HTML Can Do That](https://daily.dev/posts/html-can-do-that-q5qggnxqq) · Lobsters · 6 upvotes · 0 comments
- [Invoker Commands API - Web APIs](https://daily.dev/posts/invoker-commands-api---web-apis-ejs8qviez) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#html](https://daily.dev/tags/html)

[View this post on daily.dev](https://daily.dev/posts/invoking-elements-by-using-only-html-a-first-look-at-invokers-x71ys6ksc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Invoking elements by using only HTML: A first look at invokers","url":"https://daily.dev/posts/invoking-elements-by-using-only-html-a-first-look-at-invokers-x71ys6ksc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/invoking-elements-by-using-only-html-a-first-look-at-invokers-x71ys6ksc"},"datePublished":"2026-09-20T07:43:22.257Z","dateModified":"2026-09-20T08:14:08.349Z","description":"An experimental HTML feature called invokers is explored, which lets developers trigger actions like opening dialogs, popovers, details elements, date/file...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d8469dfab1fd7386482cb31833744e6a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d8469dfab1fd7386482cb31833744e6a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"utilitybend","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"utilitybend","logo":"https://media.daily.dev/image/upload/s--hONVFSz4--/f_auto,q_auto/v1789890196/logos/utilitybend?_a=BAMAMicg0","url":"https://daily.dev/sources/utilitybend"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/invoking-elements-by-using-only-html-a-first-look-at-invokers-x71ys6ksc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,html","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"utilitybend","item":"https://daily.dev/sources/utilitybend"},{"@type":"ListItem","position":3,"name":"Invoking elements by using only HTML: A first look at invokers"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/invoking-elements-by-using-only-html-a-first-look-at-invokers-x71ys6ksc#faq","mainEntity":[{"@type":"Question","name":"How do I open a dialog element using only HTML with invokers?","acceptedAnswer":{"@type":"Answer","text":"Add an invoketarget attribute on a button referencing the dialog's id, such as button invoketarget='my-modal' paired with dialog id='my-modal'. This opens the dialog in the top layer as a modal with the ::backdrop pseudo-element attached automatically, with no JavaScript required. Add invokeaction='close' on another button to close it. This was experimental behind Chrome Canary's Experimental Web Platform features flag. daily.dev surfaces experimental web platform features like this for developers tracking new HTML capabilities."}},{"@type":"Question","name":"What invokeaction values work with input type=date, file, and number elements using HTML invokers?","acceptedAnswer":{"@type":"Answer","text":"The showPicker action opens the native picker for date, color, file, select, and datalist-backed inputs when triggered from a button's invoketarget/invokeaction attributes. For number inputs, stepUp and stepDown invoke actions increment or decrement the value while respecting min, max, and step attributes, enabling custom stepper buttons without JavaScript, though a change event caveat existed for stepper clicks. developers building custom form controls can follow daily.dev for updates on evolving HTML input capabilities."}},{"@type":"Question","name":"What events can I trigger on a video element using HTML invoker attributes?","acceptedAnswer":{"@type":"Answer","text":"Buttons using invoketarget referencing a video element's id support invokeaction values including play, pause, playpause (toggles between play and pause), toggleMuted, and toggleFullscreen, allowing custom video controls built with plain HTML and CSS rather than JavaScript event wiring. A CSS class toggle via JavaScript was still needed to style play state since the :playing pseudo-class lacked universal support. daily.dev helps developers stay current on experimental media control APIs like this before they stabilize."}}]}
```

