aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/api/document/getselection/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/web/api/document/getselection/index.html')
-rw-r--r--files/pt-br/web/api/document/getselection/index.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/files/pt-br/web/api/document/getselection/index.html b/files/pt-br/web/api/document/getselection/index.html
new file mode 100644
index 0000000000..24f7c5c180
--- /dev/null
+++ b/files/pt-br/web/api/document/getselection/index.html
@@ -0,0 +1,10 @@
+---
+title: Document.getSelection()
+slug: Web/API/Document/getSelection
+translation_of: Web/API/DocumentOrShadowRoot/getSelection
+translation_of_original: Web/API/Document/getSelection
+original_slug: Web/API/DocumentOrShadowRoot/getSelection
+---
+<p>{{APIRef("DOM")}}</p>
+
+<p>Esse método funciona de forma idêntica ao método {{domxref("Window.getSelection()")}};  Ele retorna um objeto {{domxref("Selection")}} representando o texto atualmente selecionado no documento.</p>