Highlight: keys() method
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("CSS Custom Highlight API")}}
The **keys()** method of the {{domxref("Highlight")}} interface is an alias for the {{domxref("Highlight.values()", "values()")}} method.
Highlight is a {{jsxref("Set")}}-like object, so this is similar to using {{jsxref("Set.keys()")}}.
Syntax
js-nolint
keys()Parameters
None.
Return value
A new iterator object containing each AbstractRange object in the given Highlight, in insertion order.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- {{domxref("css_custom_highlight_api", "The CSS Custom Highlight API", "", "nocode")}}
- CSS Custom Highlight API: The Future of Highlighting Text Ranges on the Web