HTML aria-haspopup ARIA Attribute
The aria-haspopup attribute tells assistive technology that an element opens a popup, such as a menu, listbox or dialog, and what kind of popup it is.
Description
The aria-haspopup attribute indicates that activating an element opens a popup, and what type it is: a menu, listbox, tree, grid or dialog. The value true means the same as menu. Screen readers announce it, for example "Options, menu button", so users know what to expect.
The popup must actually have the matching role. Only use true or menu when the popup is a real ARIA menu with menuitem elements and menu keyboard behavior; a navigation drop-down full of links is not a menu and should be a simple disclosure button with aria-expanded instead.
Combine it with aria-expanded to show whether the popup is currently open. Elements with the combobox role have an implicit value of listbox.
Properties
Syntax
<element aria-haspopup="false | true | menu | listbox | tree | grid | dialog">
Values
- falseThe default: the element has no popup.
- trueThe popup is a menu.
- menuThe popup is a menu.
- listboxThe popup is a listbox.
- treeThe popup is a tree.
- gridThe popup is a grid.
- dialogThe popup is a dialog.
Example
Browser Support
The following information will show you the current browser support for the aria-haspopup ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.
Desktop





Tablets & Mobile





