Horje

How to add HTML <button> popovertargetaction hide Attribute

hide The popover element is hidden when you click the button
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The button popovertargetaction Attribute</h1>

<h1 popover id="myheader">Hello</h1>

<button popovertarget="myheader" popovertargetaction="hide">Show popover</button>

<p>Click the button and it will show the popover element.</p>

</body>
</html>

Output should be:

How to add HTML <button> popovertargetaction hide Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin