HTMLElement: showPopover() method

The HTMLElement.showPopover() method opens an element that has a valid popover attribute.

When showPopover() is called on an element with the popover attribute that is currently hidden, then a beforetoggle cancelable event will be fired followed by the popover opening and a toggle event being fired. If the element is already open, then nothing will happen.

Syntax

showPopover()

Parameters

None.

Return value

None (undefined).

Specifications

Specification
HTML Standard
# dom-showpopover

Browser compatibility

BCD tables only load in the browser

See also