Skip to main content

Intro to the inert attribute

A quick introduction to the inert attribute and how you can use it to trap focus within a modal.

View the source file here.

Explore the WICG inert polyfill here.

Here are a few libraries I have built that make use of the wicg-inert polyfill:

Subscribe on YouTube

Weekly web development screencasts about HTML, CSS, and Javascript.

Subscribe now