popovershowtarget

Creates a trigger element that shows an associated hidden pop-up.

Published on Updated on

The popovershowtarget attribute creates a trigger element that shows an associated hidden pop-up.

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

Values

The attribute takes a string value equal to the ID of the pop-up element that you want to show, to associate the two.

Example

<button popovershowtarget="my-popup">Show pop-up</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.