Refer to a popover element with the popovertarget attribute to show/hide the specified popover element.
With the popovertarget
attribute you can refer to the popover element with the specified id, and toggle between showing and hiding it:
<button popovertarget="element_id">
Value | Description |
---|---|
element_id | The id of the popover element related to this button |
Example:
HTML
<h1 popover id="myheader">Hello</h1>
<button popovertarget="myheader">Click me!</button>
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |