Interactive Elements
popovertargetaction="hide"
Requests that the named popover be hidden. Useful for a close button within a manual popover; the target must identify a popover in the same tree. On compatible button and input controls with popovertarget; missing or invalid values default to toggle.
Formal Syntax & Structure
html syntaxhtml
popovertargetaction="hide"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| popovertargetaction | keyword | Requests that the named popover be hidden. Useful for a close button within a manual popover; the target must identify a popover in the same tree. |
| popovertarget | element ID | Identifies the popover to control. |
Working Example
Example Snippethtml
<button type="button" popovertarget="note" popovertargetaction="show">Open note</button><button type="button" popovertarget="note" popovertargetaction="hide">Hide note</button><div id="note" popover="manual">A contextual note.</div>