HTML popovertarget Attribute
Definition and Usage
The popovertarget attribute refers to the popover element with the
specified id.
Applies to
The popovertarget attribute can be used on the following elements:
| Elements | Attribute |
|---|---|
| <input> | popovertarget |
| <button> | popovertarget |
Example
Example
Refer to the popover element with the specified id:
<button popovertarget="tip1">Show Tip</button>
<div id="tip1" popover>
Here we can show a helpful tip.
</div>
Try it Yourself »
Browser Support
| Attribute | |||||
|---|---|---|---|---|---|
| popovertarget | 114 | 114 | 125 | 17 | 100 |