Pure html popover API is coming in Chromium 114
News / Sep 24, 2023
Popovers are a common web feature and we know it as popups, popovers or overlays. To create a modal we generally use script to trigger open state, closed state, keyboard binding.
To make all that possible without any external script, a declarative HTML API is to be shipped in Chromium 114.
Let's explore how it works with a simple example.
<button popovertarget="enquiry-form"> Open Popover </button>
<div id="enquiry-form" popover>
<p>This is a simple modal.</p>
</div>
Output
We can do much more with the popover API and customize it further as per our need. To learn more visit - Using the popover API
Latest
React Component Structure, Composition, HOCs and Optimization with Examples
Oct 4, 2023
How to copy text to the clipboard in React.js
Sep 29, 2023
A Deep Dive into React useMemo with examples
Sep 26, 2023
Mastering React Router DOM with Transition and Animation: A Comprehensive Guide with Examples
Sep 21, 2023
News
Pure html popover API is coming in Chromium 114
Sep 24, 2023
GitHub and OpenAI launch Copilot - an AI pair programmer
Jul 1, 2021
CSS aspect-ratio property
Jan 31, 2021
AWS UI - a collection of React components
Jan 20, 2021
Featured
Axios Interceptors in a React application
May 27, 2023
Mastering Laravel: Exploring the Power of implode() and explode() Functions for String Manipulation
May 22, 2023
Understanding MongoDB Relationships: A Comprehensive Guide with Examples
May 21, 2023
JavaScript Array methods with examples
May 16, 2023