showPopover method

void showPopover()

The showPopover() method of the HTMLElement interface shows a Popover_API element (i.e. one that has a valid popover attribute) by adding it to the .

When showPopover() is called on an element with the popover attribute that is currently hidden, a HTMLElement.beforetoggle_event event will be fired, followed by the popover showing, and then the HTMLElement.toggle_event event firing. If the element is already showing, an error will be thrown.

Implementation

external void showPopover();