Interactive Elements
popovertargetaction="show"
Requests that the named popover be shown. Repeated activation while already open is not a request to hide it; provide a separate close control where needed. On compatible button and input controls with popovertarget; missing or invalid values default to toggle.
Formal Syntax & Structure
html syntaxhtml
popovertargetaction="show"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| popovertargetaction | keyword | Requests that the named popover be shown. Repeated activation while already open is not a request to hide it; provide a separate close control where needed. |
| 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="show">Show note</button><div id="note" popover="manual">A contextual note.</div>