Invoker Commands - HTML command Demos | IconVault
Live demos of the HTML command and commandfor attributes: dialogs, popovers and media controls with zero JavaScript. Copy the HTML. Free.
Invoker Commands
Dialogs, popovers and media with zero JavaScript
command attribute yet (Chrome 135+, Edge 135+). The code samples below still work where supported.Live demo - Dialog show / close
A modal dialog opened and closed by buttons alone. Focus trapping and Esc come free.
Try Esc or clicking the backdrop - focus is trapped automatically.
HTML source
<button command="show-modal" commandfor="signup-dialog">Open signup</button>
<dialog id="signup-dialog" closedby="any">
<h2>Create account</h2>
<form method="dialog">
<input type="email" placeholder="you@site.com" required>
<button>Join</button>
</form>
<button command="close" commandfor="signup-dialog">Cancel</button>
</dialog>commandevent listeners on any element.5 of 5 free copies left.
About this tool
IconVault's Invoker Commands playground demonstrates the declarative command and commandfor attributes: buttons that open dialogs, toggle popovers, control media and flip details elements with zero JavaScript. Every demo on the page is wired the way the sample code shows, so what you click is literally what you copy.
Each of the four demos includes copyable HTML and a rundown of the built-in commands, from show-modal and toggle-popover to play, pause and mute. Everything is free and runs fully in your browser, with an honest note about which browsers support invokers today.
Frequently asked questions
Popular searches
More tools
Algorithm Visualizer
Watch sorting and searching animate step by step
Alt Text Helper
Write better image alt text with live feedback
ARIA Reference
Searchable ARIA roles and attributes guide
Array Visualizer
Step through map, filter, reduce like a debugger
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon