aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/document/url/index.md
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-10-02 17:20:14 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-10-02 17:30:20 +0200
commitc05efa8d7ae464235cf83d7c0956e42dc6974103 (patch)
tree6ea911b2f2010f63a026de6bb7a1a51e7690a7e1 /files/fr/web/api/document/url/index.md
parent13a5e017558b248ee1647d4a5825f183b51f09ad (diff)
downloadtranslated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.gz
translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.bz2
translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.zip
move *.html to *.md
Diffstat (limited to 'files/fr/web/api/document/url/index.md')
-rw-r--r--files/fr/web/api/document/url/index.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/files/fr/web/api/document/url/index.md b/files/fr/web/api/document/url/index.md
new file mode 100644
index 0000000000..1b599ff794
--- /dev/null
+++ b/files/fr/web/api/document/url/index.md
@@ -0,0 +1,24 @@
+---
+title: Document.URL
+slug: Web/API/Document/URL
+translation_of: Web/API/Document/URL
+---
+<div>{{APIRef("DOM")}}</div>
+
+<p>Retourne l'<code><strong>URL</strong></code> du {{domxref("Document")}} sous forme de string (lecture seule).</p>
+
+<h2 id="Syntax">Syntaxe</h2>
+
+<pre class="brush: js">var <em>string</em> = document.URL
+</pre>
+
+<h2 id="Specification">Exemple</h2>
+
+<pre><code>var currentURL = document.URL;
+alert(currentURL);</code></pre>
+
+<h2 id="Specification">Specification</h2>
+
+<ul>
+ <li><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-46183437">DOM Level 2 HTML: URL</a></li>
+</ul>