• 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 Extensions

      Developing extensions for web browsers

    • 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

      A customized MDN experience

    • Updates

      All browser compatibility updates at a glance

    • Documentation

      Learn how to use MDN Plus

    • FAQ

      Frequently asked questions about MDN Plus

  • Log in
  • Get MDN Plus
  1. Tecnologia Web para desenvolvedores
  2. APIs da Web
  3. Document
  4. Document.URL

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

In this article

  • Síntaxe
  • Documentação
  1. Document Object Model
  2. Document
  3. Construtor
    1. Document()
  4. Propriedades de instância
    1. activeElement
    2. adoptedStyleSheets (en-US)
    3. alinkColor Deprecated
    4. all (en-US) Deprecated
    5. anchors Deprecated
    6. applets (en-US) Deprecated
    7. bgColor Deprecated
    8. body
    9. characterSet
    10. childElementCount (en-US)
    11. children (en-US)
    12. compatMode
    13. contentType
    14. cookie (en-US)
    15. currentScript
    16. defaultView
    17. designMode
    18. dir (en-US)
    19. doctype
    20. documentElement
    21. documentURI
    22. domain (en-US) Deprecated
    23. embeds (en-US)
    24. featurePolicy (en-US) Experimental
    25. fgColor (en-US) Deprecated
    26. firstElementChild (en-US)
    27. fonts (en-US)
    28. forms (en-US)
    29. fragmentDirective (en-US) Experimental
    30. fullscreen Deprecated
    31. fullscreenElement (en-US)
    32. fullscreenEnabled (en-US)
    33. head
    34. hidden (en-US)
    35. images
    36. implementation
    37. lastElementChild (en-US)
    38. lastModified (en-US)
    39. lastStyleSheetSet (en-US) Non-standard Deprecated
    40. linkColor (en-US) Deprecated
    41. links (en-US)
    42. location
    43. pictureInPictureElement (en-US)
    44. pictureInPictureEnabled (en-US)
    45. plugins (en-US)
    46. pointerLockElement (en-US)
    47. preferredStyleSheetSet (en-US) Non-standard Deprecated
    48. readyState
    49. referrer
    50. rootElement (en-US) Deprecated
    51. scripts
    52. scrollingElement (en-US)
    53. selectedStyleSheetSet (en-US) Non-standard Deprecated
    54. styleSheets (en-US)
    55. styleSheetSets (en-US) Non-standard Deprecated
    56. timeline (en-US)
    57. title (en-US)
    58. URL
    59. visibilityState (en-US)
    60. vlinkColor (en-US) Deprecated
    61. xmlEncoding (en-US) Deprecated
    62. xmlVersion (en-US) Deprecated
  5. Métodos de instância
    1. adoptNode() (en-US)
    2. append() (en-US)
    3. caretPositionFromPoint() (en-US)
    4. caretRangeFromPoint() (en-US) Non-standard
    5. clear() (en-US) Deprecated
    6. close()
    7. createAttribute() (en-US)
    8. createAttributeNS() (en-US)
    9. createCDATASection() (en-US)
    10. createComment() (en-US)
    11. createDocumentFragment() (en-US)
    12. createElement()
    13. createElementNS()
    14. createEvent() (en-US)
    15. createExpression() (en-US)
    16. createNodeIterator()
    17. createNSResolver() (en-US)
    18. createProcessingInstruction() (en-US)
    19. createRange() (en-US)
    20. createTextNode() (en-US)
    21. createTouch() (en-US) Non-standard Deprecated
    22. createTouchList() (en-US) Non-standard Deprecated
    23. createTreeWalker() (en-US)
    24. elementFromPoint()
    25. elementsFromPoint() (en-US)
    26. enableStyleSheetsForSet() (en-US) Non-standard Deprecated
    27. evaluate() (en-US)
    28. execCommand() Deprecated
    29. exitFullscreen() (en-US)
    30. exitPictureInPicture() (en-US)
    31. exitPointerLock() (en-US)
    32. getAnimations() (en-US)
    33. getElementById()
    34. getElementsByClassName()
    35. getElementsByName()
    36. getElementsByTagName()
    37. getElementsByTagNameNS() (en-US)
    38. getSelection()
    39. hasFocus()
    40. hasStorageAccess() (en-US)
    41. importNode()
    42. mozSetImageElement() (en-US) Non-standard
    43. open() (en-US)
    44. prepend() (en-US)
    45. queryCommandEnabled() (en-US) Non-standard Deprecated
    46. queryCommandState() (en-US) Non-standard Deprecated
    47. queryCommandSupported() (en-US) Non-standard Deprecated
    48. querySelector()
    49. querySelectorAll()
    50. releaseCapture() (en-US) Non-standard
    51. replaceChildren() (en-US)
    52. requestStorageAccess() (en-US)
    53. startViewTransition() (en-US) Experimental
    54. write()
    55. writeln()
  6. Eventos
    1. afterscriptexecute (en-US) Non-standard
    2. beforescriptexecute (en-US) Non-standard
    3. copy (en-US)
    4. cut (en-US)
    5. DOMContentLoaded (en-US)
    6. fullscreenchange (en-US)
    7. fullscreenerror (en-US)
    8. lostpointercapture (en-US)
    9. paste (en-US)
    10. pointerlockchange (en-US)
    11. pointerlockerror (en-US)
    12. readystatechange
    13. scroll (en-US)
    14. scrollend (en-US)
    15. selectionchange (en-US)
    16. visibilitychange (en-US)
  7. Herança:
    1. Node
    2. EventTarget
  8. Páginas relacionadas a DOM
    1. AbortController (en-US)
    2. AbortSignal
    3. AbstractRange (en-US)
    4. Attr
    5. CDATASection (en-US)
    6. CharacterData
    7. Comment (en-US)
    8. CustomEvent (en-US)
    9. DOMError (en-US)
    10. DOMException
    11. DOMImplementation
    12. DOMParser (en-US)
    13. DOMPoint (en-US)
    14. DOMPointReadOnly (en-US)
    15. DOMRect (en-US)
    16. DOMTokenList (en-US)
    17. DocumentFragment
    18. DocumentType (en-US)
    19. Element
    20. Event
    21. EventTarget
    22. HTMLCollection
    23. MutationObserver
    24. MutationRecord (en-US)
    25. NamedNodeMap (en-US)
    26. Node
    27. NodeIterator (en-US)
    28. NodeList
    29. ProcessingInstruction
    30. Range (en-US)
    31. StaticRange (en-US)
    32. Text (en-US)
    33. TextDecoder (en-US)
    34. TextEncoder (en-US)
    35. TimeRanges (en-US)
    36. TreeWalker (en-US)
    37. XMLDocument

In this article

  • Síntaxe
  • Documentação

Document.URL

A propriedade URL (usada apenas para leitura) da Interface Document retorna a URL atual do navegador como um texto (string).

Síntaxe

var url_atual = document.URL

Documentação

  • DOM - Nível 2 - HTML: URL

Found a content problem with this page?

  • Edit the page on GitHub.
  • Report the content issue.
  • View the source on GitHub.
Want to get more involved? Learn how to contribute.

This page was last modified on 20 de nov. de 2022 by MDN contributors.

MDN logo

Your blueprint for a better internet.

  • MDN on Twitter
  • MDN on GitHub

MDN

  • About
  • Hacks Blog
  • Careers
  • Advertise with us

Support

  • Product help
  • Report an 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–2023 by individual mozilla.org contributors. Content available under a Creative Commons license.