popOverShowTarget

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

Published on Updated on

The popOverShowTarget property of the HTMLInputElement and HTMLButtonElement interfaces creates a trigger element that shows an associated hidden pop-up. It is the DOM definition of the HTML popovershowtarget attribute.

Value

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

Example

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

// get
popup.popOverShowTarget;

// set
popup.popOverShowTarget = 'my-popup';

Browser compatibility

See also

Updated on Improve article

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