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.html12
1 files changed, 12 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..494ded4250
--- /dev/null
+++ b/files/es/web/api/document/getselection/index.html
@@ -0,0 +1,12 @@
+---
+title: Document.getSelection()
+slug: Web/API/Document/getSelection
+tags:
+ - Referencia
+ - Selección
+ - metodo
+translation_of: 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>