aria-haspopup
Characteristics
Type:
- String
Related Concepts:
- aria-controls
Used in Roles:
- All elements of the base markup (Global)
- No role required
Value:
- true/false
- true: Indicates the object has a popup, either as a descendant or pointed to by aria-owns.
- false (default): The object has no popup.
Indicates that the element has a popup context menu or sub-level menu.
This means that activation renders conditional content. Note that ordinary tooltips are not considered popups in this context.
A popup is generally presented visually as a group of items that appears to be on top of the main page content.
Note For cross-browser compatibility, always use the WAI-ARIA attribute syntax to access and modify ARIA properties, for example object.setAttribute("aria-valuenow", newValue).
Syntax
HTML <element aria-haspopup="p" ... > JavaScript object.setAttribute("aria-haspopup",value);var value = object.getAttribute("aria-haspopup");
Microsoft Active Accessibility Properties:
- STATE_HASPOPUP
UI Automation Properties:
- N/A
UI Automation AriaProperties Property:
- haspopup