зеркало из https://github.com/mozilla/pjs.git
8 строки
176 B
HTML
8 строки
176 B
HTML
|
<script>
|
||
|
oSelection = window.getSelection();
|
||
|
oRange = document.createRange();
|
||
|
oSelection.addRange(oRange);
|
||
|
oRange.detach();
|
||
|
oSelection.removeRange(oRange);
|
||
|
</script>
|