popoverHideTarget

Creates a trigger element that dismisses an associated shown popover.

Published on Updated on

The popoverHideTarget property of the HTMLInputElement and HTMLButtonElement interfaces creates a trigger element that dismisses an associated shown popover. It is the DOM definition of the HTML popoverhidetarget attribute.

Value

A string value equal to the ID of the popover element that you want to show, to associate the two.

Example

const popover = document.getElementById('my-popover-btn');

// get
popover.popoverHideTarget;

// set
popover.popoverHideTarget = 'my-popover';

Browser compatibility

See also

Updated on Improve article

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.