Selection API
JavaScript’s Selection API, Range, Selection, на сайте с 13 сентября 2022, 19:28
The Selection API enables developers to access and manipulate the portion of a document selected by the user.