aria-haspopup attribute | ariaHaspopup property
[This documentation is preliminary and is subject to change.]
Sets or retrieves a value indicating whether this element may display a pop-up window.
This property is not supported for Metro style apps using JavaScript.
![]() |
Syntax
| HTML |
|---|
<element aria-haspopup="p" ... > |
| JavaScript |
|---|
object.setAttribute("aria-haspopup",value);var value = object.getAttribute("aria-haspopup");
|
Property values
Type: String
A value indicating whether this element might display a pop-up window.
(true)
-
The element will show a menu or flyout when clicked.
(false)
-
Default. The element has no pop-up.
Remarks
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).
See also
Build date: 2/13/2012
