popoverhidetarget

Creates a trigger element that dismisses an associated shown popover.

Published on Updated on

The popoverhidetarget attribute creates a trigger element that dismisses an associated shown popover.

It can be used on the <button> and <input> elements.

Values

The attribute takes a string value equal to the ID of the popover element that you want to dismiss, to associate the two.

Example

<button popoverhidetarget="my-popover">Dismiss popover</button>

Browser compatibility

See also

Updated on Improve article

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