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/Document/dir below:

Document: dir property - Web APIs

MDN Web Docs
  1. References
  2. Web APIs
  3. Document
  4. dir

Filter sidebar

In this article
  1. The HTML DOM API
  2. Document
  3. Constructor
    1. Document()
  4. Instance properties
    1. activeElement
    2. adoptedStyleSheets
    3. alinkColor Deprecated
    4. all Deprecated
    5. anchors Deprecated
    6. applets Deprecated
    7. bgColor Deprecated
    8. body
    9. characterSet
    10. childElementCount
    11. children
    12. compatMode
    13. contentType
    14. cookie
    15. currentScript
    16. defaultView
    17. designMode
    18. dir
    19. doctype
    20. documentElement
    21. documentURI
    22. domain Deprecated
    23. embeds
    24. featurePolicy Experimental
    25. fgColor Deprecated
    26. firstElementChild
    27. fonts
    28. forms
    29. fragmentDirective
    30. fullscreen Deprecated
    31. fullscreenElement
    32. fullscreenEnabled
    33. head
    34. hidden
    35. images
    36. implementation
    37. lastElementChild
    38. lastModified
    39. lastStyleSheetSet Non-standard Deprecated
    40. linkColor Deprecated
    41. links
    42. location
    43. pictureInPictureElement
    44. pictureInPictureEnabled
    45. plugins
    46. pointerLockElement
    47. preferredStyleSheetSet Non-standard Deprecated
    48. prerendering Experimental
    49. readyState
    50. referrer
    51. rootElement Deprecated
    52. scripts
    53. scrollingElement
    54. selectedStyleSheetSet Non-standard Deprecated
    55. styleSheets
    56. styleSheetSets Non-standard Deprecated
    57. timeline
    58. title
    59. URL
    60. visibilityState
    61. vlinkColor Deprecated
    62. xmlEncoding Deprecated
    63. xmlVersion Deprecated
  5. Static methods
    1. parseHTMLUnsafe()
  6. Instance methods
    1. adoptNode()
    2. append()
    3. browsingTopics() Experimental Non-standard
    4. caretPositionFromPoint()
    5. caretRangeFromPoint() Non-standard
    6. clear() Deprecated
    7. close()
    8. createAttribute()
    9. createAttributeNS()
    10. createCDATASection()
    11. createComment()
    12. createDocumentFragment()
    13. createElement()
    14. createElementNS()
    15. createEvent() Deprecated
    16. createExpression()
    17. createNodeIterator()
    18. createNSResolver() Deprecated
    19. createProcessingInstruction()
    20. createRange()
    21. createTextNode()
    22. createTouch() Non-standard Deprecated
    23. createTouchList() Non-standard Deprecated
    24. createTreeWalker()
    25. elementFromPoint()
    26. elementsFromPoint()
    27. enableStyleSheetsForSet() Non-standard Deprecated
    28. evaluate()
    29. execCommand() Deprecated
    30. exitFullscreen()
    31. exitPictureInPicture()
    32. exitPointerLock()
    33. getAnimations()
    34. getElementById()
    35. getElementsByClassName()
    36. getElementsByName()
    37. getElementsByTagName()
    38. getElementsByTagNameNS()
    39. getSelection()
    40. hasFocus()
    41. hasStorageAccess()
    42. hasUnpartitionedCookieAccess()
    43. importNode()
    44. moveBefore() Experimental
    45. mozSetImageElement() Non-standard
    46. open()
    47. prepend()
    48. queryCommandEnabled() Non-standard Deprecated
    49. queryCommandState() Non-standard Deprecated
    50. queryCommandSupported() Non-standard Deprecated
    51. querySelector()
    52. querySelectorAll()
    53. releaseCapture() Non-standard
    54. replaceChildren()
    55. requestStorageAccess()
    56. requestStorageAccessFor() Experimental
    57. startViewTransition()
    58. write() Deprecated
    59. writeln()
  7. Events
    1. afterscriptexecute Non-standard Deprecated
    2. beforescriptexecute Non-standard Deprecated
    3. copy
    4. cut
    5. DOMContentLoaded
    6. fullscreenchange
    7. fullscreenerror
    8. paste
    9. pointerlockchange
    10. pointerlockerror
    11. prerenderingchange Experimental
    12. readystatechange
    13. scroll
    14. scrollend
    15. scrollsnapchange Experimental
    16. scrollsnapchanging Experimental
    17. securitypolicyviolation
    18. selectionchange
    19. visibilitychange
  8. Inheritance
    1. Node
    2. EventTarget
  9. Related pages for HTML DOM
    1. BeforeUnloadEvent
    2. DOMStringMap
    3. ErrorEvent
    4. HTMLAnchorElement
    5. HTMLAreaElement
    6. HTMLAudioElement
    7. HTMLBRElement
    8. HTMLBaseElement
    9. HTMLBodyElement
    10. HTMLButtonElement
    11. HTMLCanvasElement
    12. HTMLDListElement
    13. HTMLDataElement
    14. HTMLDataListElement
    15. HTMLDialogElement
    16. HTMLDivElement
    17. HTMLDocument
    18. HTMLElement
    19. HTMLEmbedElement
    20. HTMLFieldSetElement
    21. HTMLFormControlsCollection
    22. HTMLFormElement
    23. HTMLFrameSetElement Deprecated
    24. HTMLHRElement
    25. HTMLHeadElement
    26. HTMLHeadingElement
    27. HTMLHtmlElement
    28. HTMLIFrameElement
    29. HTMLImageElement
    30. HTMLInputElement
    31. HTMLLIElement
    32. HTMLLabelElement
    33. HTMLLegendElement
    34. HTMLLinkElement
    35. HTMLMapElement
    36. HTMLMediaElement
    37. HTMLMenuElement
    38. HTMLMetaElement
    39. HTMLMeterElement
    40. HTMLModElement
    41. HTMLOListElement
    42. HTMLObjectElement
    43. HTMLOptGroupElement
    44. HTMLOptionElement
    45. HTMLOptionsCollection
    46. HTMLOutputElement
    47. HTMLParagraphElement
    48. HTMLPictureElement
    49. HTMLPreElement
    50. HTMLProgressElement
    51. HTMLQuoteElement
    52. HTMLScriptElement
    53. HTMLSelectElement
    54. HTMLSourceElement
    55. HTMLSpanElement
    56. HTMLStyleElement
    57. HTMLTableCaptionElement
    58. HTMLTableCellElement
    59. HTMLTableColElement
    60. HTMLTableElement
    61. HTMLTableRowElement
    62. HTMLTableSectionElement
    63. HTMLTemplateElement
    64. HTMLTextAreaElement
    65. HTMLTimeElement
    66. HTMLTitleElement
    67. HTMLTrackElement
    68. HTMLUListElement
    69. HTMLUnknownElement
    70. HTMLVideoElement
    71. HashChangeEvent
    72. History
    73. ImageData
    74. Location
    75. MessageChannel
    76. MessageEvent
    77. MessagePort
    78. Navigator
    79. PageRevealEvent
    80. PageSwapEvent
    81. PageTransitionEvent
    82. Plugin Deprecated
    83. PluginArray Deprecated
    84. PromiseRejectionEvent
    85. RadioNodeList
    86. UserActivation
    87. ValidityState
    88. Window
    89. WorkletGlobalScope
In this article Document: dir property

Baseline Widely available

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

The Document.dir property is a string representing the directionality of the text of the document, whether left to right (default) or right to left. Possible values are 'rtl', right to left, and 'ltr', left to right.

Value

A string.

Specifications Specification HTML
# dom-document-dir
Browser compatibility See also Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Apr 10, 2025 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.3