A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/Selection.collapseToEnd below:

Selection: collapseToEnd() method - Web APIs

MDN Web Docs
  1. Web
  2. Web APIs
  3. Selection
  4. collapseToEnd()

Filter sidebar

In this article
  1. Document Object Model (DOM)
  2. Selection
  3. Instance properties
    1. anchorNode
    2. anchorOffset
    3. direction
    4. focusNode
    5. focusOffset
    6. isCollapsed
    7. rangeCount
    8. type
  4. Instance methods
    1. addRange()
    2. collapse()
    3. collapseToEnd()
    4. collapseToStart()
    5. containsNode()
    6. deleteFromDocument()
    7. empty()
    8. extend()
    9. getComposedRanges()
    10. getRangeAt()
    11. modify()
    12. removeAllRanges()
    13. removeRange()
    14. selectAllChildren()
    15. setBaseAndExtent()
    16. setPosition()
    17. toString()
  5. Related pages for DOM
    1. AbortController
    2. AbortSignal
    3. AbstractRange
    4. Attr
    5. CDATASection
    6. CharacterData
    7. Comment
    8. CustomEvent
    9. DOMError Deprecated
    10. DOMException
    11. DOMImplementation
    12. DOMParser
    13. DOMPoint
    14. DOMPointReadOnly
    15. DOMRect
    16. DOMTokenList
    17. Document
    18. DocumentFragment
    19. DocumentType
    20. Element
    21. Event
    22. EventTarget
    23. HTMLCollection
    24. MutationObserver
    25. MutationRecord
    26. NamedNodeMap
    27. Node
    28. NodeIterator
    29. NodeList
    30. ProcessingInstruction
    31. Range
    32. StaticRange
    33. Text
    34. TextDecoder
    35. TextEncoder
    36. TimeRanges
    37. TreeWalker
    38. XMLDocument
  6. Guides
    1. Introduction to the DOM
    2. Using the Document Object Model
    3. Attribute reflection
    4. Traversing an HTML table with JavaScript and DOM Interfaces
    5. Locating DOM elements using selectors
    6. Working with events
    7. Examples of web and XML development using the DOM
In this article Selection: collapseToEnd() method

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

The Selection.collapseToEnd() method collapses the selection to the end of the last range in the selection. If the content of the selection is focused and editable, the caret will blink there.

Syntax

js

collapseToEnd()
Parameters

None.

Return value

None (undefined).

Specifications Specification Selection API
# dom-selection-collapsetoend
Browser compatibility See also Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Apr 8, 2023 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4