Popovers were once firmly in the domain of JavaScript. Today let's examine one of our non-JS options to build them. The goals Build a popover (click to open/close) Limit DOM use Require 0 JavaScript The results https://codepen.io/kallmanation/pen/g...

Markdown supported · ⌘↵ to post
Gary Varnum
I repurpose code borrowed from more talented programmers.
How could I close the popover without clicking on the <summary> element again? I would like to place a "close" icon in the <p> like in a modal, but can't tell how to hide the popover when the icon is clicked..