aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/document/getselection/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/api/document/getselection/index.html')
-rw-r--r--files/fr/web/api/document/getselection/index.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/files/fr/web/api/document/getselection/index.html b/files/fr/web/api/document/getselection/index.html
new file mode 100644
index 0000000000..676ba4d351
--- /dev/null
+++ b/files/fr/web/api/document/getselection/index.html
@@ -0,0 +1,16 @@
+---
+title: document.getSelection
+slug: Web/API/Document/getSelection
+tags:
+ - API
+ - DOM
+ - Méthodes
+ - Reference
+ - Selection
+translation_of: Web/API/DocumentOrShadowRoot/getSelection
+translation_of_original: Web/API/Document/getSelection
+original_slug: Web/API/DocumentOrShadowRoot/getSelection
+---
+<p>{{APIRef("DOM")}}</p>
+
+<p><span id="result_box" lang="fr"><span>Cette méthode fonctionne de manière identique à la méthode {{domxref ("Window.getSelection()")}} ;</span> elle<span> renvoie un objet {{domxref ("Selection")}} représentant le texte actuellement sélectionné dans le document.</span></span></p>