DOM Properties
HTMLElement.inert
Read/write. Reflects the inert attribute. An inert subtree is excluded from normal user interaction, focus navigation and accessibility exposure. The property reports the element's own attribute, not inherited inertness. Example result: false.
Formal Syntax & Structure
html syntaxhtml
element.inertReturn Value
boolean
Property value. Read/write.
Working Example
Example Snippethtml
<div id="demo"> <button>Save</button></div><p> Result: <output id="result"></output></p><script> const e = document.getElementById('demo'); const result = value => { document.getElementById("result").textContent = String(value); }; e.inert=true; e.querySelector('button').focus(); result(document.activeElement===e.querySelector('button'));</script>Browser Compatibility
Minimum supported versions across modern rendering engines
Widely Available
Chrome
102
Yes
Firefox
112
Yes
Safari
15.5
Yes
Checked desktop BCD snapshot: HTMLElement.inert property; find-in-page differs. Versions denote the recorded start of support (≤ means at least that early), not a guarantee of all behavior. Unresolved mirror and preview rows omitted.
HTML Living Standard