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.html14
1 files changed, 14 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..5a0bb35861
--- /dev/null
+++ b/files/fr/web/api/document/getselection/index.html
@@ -0,0 +1,14 @@
+---
+title: document.getSelection
+slug: Web/API/Document/getSelection
+tags:
+ - API
+ - DOM
+ - Méthodes
+ - Reference
+ - Selection
+translation_of: 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>