aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/api/document/url/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/web/api/document/url/index.html')
-rw-r--r--files/pt-br/web/api/document/url/index.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/files/pt-br/web/api/document/url/index.html b/files/pt-br/web/api/document/url/index.html
new file mode 100644
index 0000000000..e4a1d2eab7
--- /dev/null
+++ b/files/pt-br/web/api/document/url/index.html
@@ -0,0 +1,19 @@
+---
+title: Document.URL
+slug: Web/API/Document/URL
+translation_of: Web/API/Document/URL
+---
+<div>{{APIRef("DOM")}}</div>
+
+<p>A propriedade <code><strong>URL </strong></code>(usada apenas para leitura) da Interface {{domxref("Document")}} retorna a URL atual do navegador como um texto (string).</p>
+
+<h2 id="Syntax" name="Syntax">Síntaxe</h2>
+
+<pre class="brush: js">var <em>url_atual</em> = document.URL
+</pre>
+
+<h2 id="Specification" name="Specification">Documentação</h2>
+
+<ul>
+ <li><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-46183437">DOM - Nível 2 - HTML: URL</a></li>
+</ul>