togglePopover method

bool togglePopover([
  1. bool force
])

The togglePopover() method of the HTMLElement interface toggles a Popover_API element (i.e. one that has a valid popover attribute) between the hidden and showing states.

When togglePopover() is called on an element with the popover attribute:

  1. A HTMLElement/beforetoggle_event event is fired.
  2. The popover toggles between hidden and showing:
  3. If it was initially showing, it toggles to hidden.
  4. If it was initially hidden, it toggles to showing.
  5. A HTMLElement/toggle_event event is fired.

Implementation

external bool togglePopover([bool force]);