aria-haspopup
TokenIndicates that activating the element reveals a popup — a menu, listbox, tree, grid, or dialog — and names which kind. Screen readers announce that a popup is available so users know to expect it. It describes the type of popup, not whether it is currently open; use aria-expanded for the open/closed state.
Values
- false (default)
- The element does not trigger a popup.
- true
- The popup is a menu (same as "menu").
- menu
- The element opens a menu.
- listbox
- The element opens a listbox.
- tree
- The element opens a tree.
- grid
- The element opens a grid.
- dialog
- The element opens a dialog.
Used on
Any HTML element —
aria-haspopup is a global property.Associated roles
Every ARIA role. As a global property,
aria-haspopup is supported on all roles.Example
aria-haspopup="…"
<button aria-haspopup="menu" aria-expanded="false">
Actions
</button>References