files/en-us/web/api/element/ariarelevant/index.md
{{APIRef("DOM")}}{{Non-standard_Header}}
The ariaRelevant property of the {{domxref("Element")}} interface reflects the value of the aria-relevant attribute, which indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. This is used to describe what changes in an aria-live region are relevant and should be announced.
A string containing one or more of the following values, space separated:
"additions"
"removals"
"text"
"all"
"additions removals text".In this example the aria-relevant attribute on the element with an ID of text is set to "all". Using ariaRelevant we update the value to "text".
<div
id="clock"
role="timer"
aria-live="polite"
aria-atomic="true"
aria-relevant="all"></div>
let el = document.getElementById("clock");
console.log(el.ariaRelevant); // all
el.ariaRelevant = "text";
console.log(el.ariaRelevant); // text
{{Compat}}