blob: 24f7c5c180e1f48478aad5c8bd64fc152374c745 (
plain)
1
2
3
4
5
6
7
8
9
10
|
---
title: Document.getSelection()
slug: Web/API/Document/getSelection
translation_of: Web/API/DocumentOrShadowRoot/getSelection
translation_of_original: Web/API/Document/getSelection
original_slug: Web/API/DocumentOrShadowRoot/getSelection
---
<p>{{APIRef("DOM")}}</p>
<p>Esse método funciona de forma idêntica ao método {{domxref("Window.getSelection()")}}; Ele retorna um objeto {{domxref("Selection")}} representando o texto atualmente selecionado no documento.</p>
|