Interactive Elements

popovertargetaction="hide"

Build a form with the HTML form generator

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

NameTypeDescription
popovertargetactionkeywordRequests 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.
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="hide">Hide note</button><div id="note" popover="manual">A contextual note.</div>
HTML Reference