diff options
Diffstat (limited to 'files/ru/web/api/documentorshadowroot/getselection/index.html')
-rw-r--r-- | files/ru/web/api/documentorshadowroot/getselection/index.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/files/ru/web/api/documentorshadowroot/getselection/index.html b/files/ru/web/api/documentorshadowroot/getselection/index.html new file mode 100644 index 0000000000..ce4007b2f3 --- /dev/null +++ b/files/ru/web/api/documentorshadowroot/getselection/index.html @@ -0,0 +1,10 @@ +--- +title: Document.getSelection() +slug: Web/API/DocumentOrShadowRoot/getSelection +translation_of: Web/API/DocumentOrShadowRoot/getSelection +translation_of_original: Web/API/Document/getSelection +original_slug: Web/API/Document/getSelection +--- +<p>{{APIRef("DOM")}}</p> + +<p>Этот метод работает в точности так же, как {{domxref("Window.getSelection()")}}; он возвращает объект {{domxref("Selection")}}, в котором содержатся данные о тексте, выделенном в документе на данный момент.</p> |