{"json_modified": "2015-05-27T12:14:11.990133", "slug": "Web/API/Document/getSelection", "tags": [], "locale": "pt-BR", "title": "Document.getSelection()", "translations": [{"title": "Document.getSelection()", "url": "/en-US/docs/Web/API/Document/getSelection", "tags": ["API", "DOM", "Reference", "R\u00e9f\u00e9rence", "Document", "Selection", "Method"], "summary": "This method functions identically to the Window.getSelection()
method; it returns a Selection
object representing the text currently selected in the document.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-02-21T17:40:51", "review_tags": []}, {"title": "document.getSelection", "url": "/ja/docs/Web/API/Document/getSelection", "tags": ["Document", "Selection", "Reference", "DOM", "R\u00e9f\u00e9rence"], "summary": "DOM \u306e getSelection()
\u30e1\u30bd\u30c3\u30c9\u306f\u3001 Window
\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u53ca\u3073 Document
\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3067\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002
\n \u8a73\u7d30\u306b\u3064\u3044\u3066\u306f window.getSelection()
\u306e\u9801\u3092\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2013-05-18T04:09:02", "review_tags": []}, {"title": "document.getSelection", "url": "/zh-CN/docs/Web/API/Document/getSelection", "tags": [], "summary": "", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-01-22T05:40:04", "review_tags": []}, {"title": "document.getSelection", "url": "/fr/docs/Web/API/Document/getSelection", "tags": [], "summary": "La m\u00e9thode DOM getSelection()
\u00a0est accessible \u00e0 partir des interfaces Window
et Document
.
\n Pour plus de d\u00e9tails, consultez window.getSelection()
.", "localization_tags": ["inprogress"], "locale": "fr", "last_edit": "2014-12-15T06:07:39", "review_tags": []}, {"title": "Document.getSelection()", "url": "/es/docs/Web/API/Document/getSelection", "tags": ["m\u00e9todo", "Refer\u00eancia", "Selecci\u00f3n", "metodo", "Referencia"], "summary": "Este m\u00e9todo funciona exactamente igual que Window.getSelection()
; devuelve un objeto Selection
que representa el texto que se ha seleccionado en el documento.", "localization_tags": ["inprogress"], "locale": "es", "last_edit": "2015-05-21T00:52:15", "review_tags": ["technical"]}], "modified": "2015-05-27T12:14:10", "label": "Document.getSelection()", "localization_tags": ["inprogress"], "url": "/pt-BR/docs/Web/API/Document/getSelection", "last_edit": "2015-05-27T12:14:05", "summary": "Esse m\u00e9todo funciona de forma id\u00eantica\u00a0ao m\u00e9todo\u00a0Window.getSelection()
; \u00a0Ele\u00a0retorna\u00a0um objeto Selection
representando o texto atualmente selecionado no documento.", "sections": [{"id": "Quick_Links", "title": "Document Properties Document.activeElement [Translate] Document.alinkColor [Translate] Document.anchors [Translate] Document.applets [Translate] Document.async [Translate] Document.bgColor [Translate] Document.body [Translate] Document.characterSet [Translate] ParentNode.childElementCount [Translate] ParentNode.children [Translate] Document.compatMode [Translate] Document.contentType [Translate] Document.currentScript [Translate] Document.defaultView [Translate] Document.designMode [Translate] Document.dir [Translate] Document.doctype [Translate] Document.documentElement [Translate] Document.documentURI [Translate] Document.documentURIObject [Translate] Document.domain [Translate] Document.domConfig [Translate] Document.embeds [Translate] Document.fgColor [Translate] ParentNode.firstElementChild [Translate] Document.forms [Translate] Document.head [Translate] Document.height [Translate] Document.images Document.implementation [Translate] Document.inputEncoding [Translate] ParentNode.lastElementChild [Translate] Document.lastModified [Translate] Document.lastStyleSheetSet [Translate] Document.linkColor [Translate] Document.links [Translate] Document.location [Translate] Document.mozFullScreen [Translate] Document.mozFullScreenElement [Translate] Document.mozFullScreenEnabled [Translate] Document.mozSyntheticDocument [Translate] GlobalEventHandlers.onabort [Translate] Document.onafterscriptexecute [Translate] Document.onbeforescriptexecute [Translate] GlobalEventHandlers.onblur [Translate] GlobalEventHandlers.onchange [Translate] GlobalEventHandlers.onclick [Translate] GlobalEventHandlers.onclose [Translate] GlobalEventHandlers.oncontextmenu [Translate] GlobalEventHandlers.ondblclick [Translate] GlobalEventHandlers.onerror [Translate] GlobalEventHandlers.onfocus [Translate] GlobalEventHandlers.oninput [Translate] GlobalEventHandlers.onkeydown [Translate] GlobalEventHandlers.onkeypress [Translate] GlobalEventHandlers.onkeyup [Translate] GlobalEventHandlers.onload [Translate] GlobalEventHandlers.onmousedown [Translate] GlobalEventHandlers.onmousemove [Translate] GlobalEventHandlers.onmouseout [Translate] GlobalEventHandlers.onmouseover [Translate] GlobalEventHandlers.onmouseup [Translate] Document.onoffline [Translate] Document.ononline [Translate] GlobalEventHandlers.onreset [Translate] GlobalEventHandlers.onresize [Translate] GlobalEventHandlers.onscroll [Translate] GlobalEventHandlers.onselect [Translate] GlobalEventHandlers.onsubmit [Translate] Document.origin [Translate] Document.plugins [Translate] Document.pointerLockElement [Translate] Document.popupNode [Translate] Document.preferredStyleSheetSet [Translate] Document.readyState [Translate] Document.referrer [Translate] Document.scripts Document.scrollingElement [Translate] Document.selectedStyleSheetSet [Translate] Document.styleSheets [Translate] Document.styleSheetSets [Translate] Document.title [Translate] Document.tooltipNode [Translate] Document.URL [Translate] Document.vlinkColor [Translate] Document.width [Translate] Document.xmlEncoding [Translate] Document.xmlVersion [Translate] Methods Document.adoptNode() [Translate] Document.caretPositionFromPoint() [Translate] Document.caretRangeFromPoint() [Translate] Document.clear() [Translate] Document.close() [Translate] Document.createAttribute() [Translate] Document.createCDATASection() [Translate] Document.createComment() [Translate] Document.createDocumentFragment() [Translate] Document.createElement() [Translate] Document.createElementNS() [Translate] Document.createEntityReference() [Translate] Document.createEvent() [Translate] Document.createExpression() [Translate] Document.createNodeIterator() [Translate] Document.createNSResolver() [Translate] Document.createProcessingInstruction() [Translate] Document.createRange() [Translate] Document.createTextNode() [Translate] Document.createTouch() [Translate] Document.createTouchList() [Translate] Document.createTreeWalker() [Translate] Document.elementFromPoint() [Translate] Document.enableStyleSheetsForSet() [Translate] Document.evaluate() [Translate] Document.execCommand() [Translate] Document.exitPointerLock() [Translate] Document.getBoxObjectFor() [Translate] document.getElementById() Document.getElementsByClassName() [Translate] Document.getElementsByName() [Translate] Document.getElementsByTagName() [Translate] Document.getElementsByTagNameNS() [Translate] Document.getSelection() Document.hasFocus() [Translate] Document.importNode() [Translate] Document.loadOverlay() [Translate] Document.mozCancelFullScreen() [Translate] Document.mozSetImageElement() [Translate] Document.open() [Translate] Document.queryCommandSupported() [Translate] Document.querySelector() Document.querySelectorAll() Document.registerElement() [Translate] Document.releaseCapture() [Translate] Document.write() [Translate] Document.writeln() Inheritance: Node EventTarget Related pages for DOM Attr ByteString CDATASection CharacterData ChildNode Comment CustomEvent DOMConfiguration DOMError DOMErrorHandler DOMException DOMImplementation DOMImplementationList DOMImplementationRegistry DOMImplementationSource DOMLocator DOMObject DOMParser DOMPoint DOMRect DOMString DOMTimeStamp DOMTokenList DOMUserData DocumentFragment DocumentType Element ElementTraversal Entity EntityReference Event EventTarget HTMLCollection MutationObserver Node NodeFilter NodeIterator NodeList NonDocumentTypeChildNode ProcessingInstruction PromiseResolver Range Selection Text TextDecoder TextEncoder TimeRanges TreeWalker TypeInfo USVString UserDataHandler XMLDocument"}], "id": 151775, "review_tags": []}