aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/api/document/getselection/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/es/web/api/document/getselection/index.html')
-rw-r--r--files/es/web/api/document/getselection/index.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/files/es/web/api/document/getselection/index.html b/files/es/web/api/document/getselection/index.html
new file mode 100644
index 0000000000..465c75bc53
--- /dev/null
+++ b/files/es/web/api/document/getselection/index.html
@@ -0,0 +1,14 @@
+---
+title: Document.getSelection()
+slug: Web/API/Document/getSelection
+tags:
+ - Referencia
+ - Selección
+ - metodo
+translation_of: Web/API/DocumentOrShadowRoot/getSelection
+translation_of_original: Web/API/Document/getSelection
+original_slug: Web/API/DocumentOrShadowRoot/getSelection
+---
+<p>{{APIRef("DOM")}}</p>
+
+<p>Este método funciona exactamente igual que {{domxref("Window.getSelection()")}}; devuelve un objeto {{domxref("Selection")}} que representa el texto que se ha seleccionado en el documento.</p>