• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Technology

      Web technology reference for developers

  • Guides
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • MDN Plus
    • Overview

      More MDN. Your MDN.

    • FAQ

      Frequently asked questions about MDN Plus

  • Already a subscriber?
  • Get MDN Plus
  1. References
  2. Web APIs
  3. AbstractRange
  4. AbstractRange.startContainer

In this article

  • Value
  • Example
  • Specifications
  • Browser compatibility

Related Topics

  1. Document Object Model
  2. AbstractRange
  3. Properties
    1. collapsed
    2. endContainer
    3. endOffset
    4. startContainer
    5. startOffset
  4. Related pages for DOM
    1. AbortController
    2. AbortSignal
    3. Attr
    4. CDATASection
    5. CharacterData
    6. Comment
    7. CustomEvent
    8. DOMError
    9. DOMException
    10. DOMImplementation
    11. DOMParser
    12. DOMPoint
    13. DOMPointReadOnly
    14. DOMRect
    15. DOMTimeStamp
    16. DOMTokenList
    17. Document
    18. DocumentFragment
    19. DocumentType
    20. Element
    21. Event
    22. EventTarget
    23. HTMLCollection
    24. MutationObserver
    25. NamedNodeMap
    26. Node
    27. NodeIterator
    28. NodeList
    29. ProcessingInstruction
    30. Range
    31. StaticRange
    32. Text
    33. TextDecoder
    34. TextEncoder
    35. TimeRanges
    36. TreeWalker
    37. XMLDocument

In this article

  • Value
  • Example
  • Specifications
  • Browser compatibility

AbstractRange.startContainer

The read-only startContainer property of the AbstractRange interface returns the start Node for the range.

Value

The Node inside which the start position of the range is found.

Example

let startNode = range.startContainer;

Specifications

Specification
DOM Standard
# ref-for-dom-range-startcontainer①

Browser compatibility

BCD tables only load in the browser

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: May 27, 2022, by MDN contributors

MDN logo

Your blueprint for a better internet.

  • MDN on Twitter
  • MDN on GitHub

MDN

  • About
  • Hacks Blog
  • Careers

Support

  • Product help
  • Report a page issue
  • Report a site issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
Mozilla logo
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2022 by individual mozilla.org contributors. Content available under a Creative Commons license.