Answers for "selection.addrange() deprecated"

CSS
0

selection.addrange() deprecated

selection = window.getSelection();    // Save the selection.
range = document.createRange();
range.selectNodeContents(elem);
selection.removeAllRanges();          // Remove all ranges from the selection.
selection.addRange(range);            // Add the new range.
Posted by: Guest on June-29-2021

Code answers related to "selection.addrange() deprecated"

Browse Popular Code Answers by Language