blob: 270449529fabfbb0c26e4618b08daebc0a2f3389 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
---
{{APIRef("DOM")}}
Cette méthode fonctionne de manière identique à la méthode {{domxref ("Window.getSelection()")}} ; elle renvoie un objet {{domxref ("Selection")}} représentant le texte actuellement sélectionné dans le document.
|