Favorites

HTML aria-haspopup ARIA Attribute

aria-haspopup
ARIA AttributeThis ARIA attribute is supported by all modern browsers.
Updated 28th November 2026

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.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

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

Type
Widget
Value
token
Default
false
Used with
application, button, combobox, gridcell, link, menuitem, slider, tab, textbox, treeitem

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

<button type="button" aria-haspopup="dialog" aria-expanded="false"
onclick="var d=document.getElementById('dlg');d.showModal();">
Change settings
</button>
<dialog id="dlg" aria-labelledby="dlg-title">
<h2 id="dlg-title">Settings</h2>
<button type="button" onclick="this.closest('dialog').close()">Close</button>
</dialog>

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.

This ARIA attribute is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee