Interactive Elements

popovertargetaction="show"

Build a form with the HTML form generator

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

NameTypeDescription
popovertargetactionkeywordRequests 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.
popovertargetelement IDIdentifies 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>
HTML Reference