[Javascript] document.Selection 과 Range 정리
Selection selection - Web API | MDN A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or manipulation, call window.getSelection(). developer.mozilla.org Selection는 사용자, 캐럿의 현재 위치에 의해 선택된 텍스트의 범위를 나타냅니다. 사용자가 마우스를 통해 드래그하거나, 키보드를 통해 선택한 텍스트의 범위를 나타냅니다. 브라우저에서는 사용자가 선택한 텍스트에 대한 처리를 지원하기 위해 Selecti..