aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/document/url
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-10-02 17:20:24 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-10-02 17:30:20 +0200
commit1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde (patch)
tree30a56efd3eff3a01bd1611e1840fdbbfacf544a4 /files/fr/web/api/document/url
parentc05efa8d7ae464235cf83d7c0956e42dc6974103 (diff)
downloadtranslated-content-1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde.tar.gz
translated-content-1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde.tar.bz2
translated-content-1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde.zip
convert content to md
Diffstat (limited to 'files/fr/web/api/document/url')
-rw-r--r--files/fr/web/api/document/url/index.md23
1 files changed, 11 insertions, 12 deletions
diff --git a/files/fr/web/api/document/url/index.md b/files/fr/web/api/document/url/index.md
index 1b599ff794..454dde3afb 100644
--- a/files/fr/web/api/document/url/index.md
+++ b/files/fr/web/api/document/url/index.md
@@ -3,22 +3,21 @@ title: Document.URL
slug: Web/API/Document/URL
translation_of: Web/API/Document/URL
---
-<div>{{APIRef("DOM")}}</div>
+{{APIRef("DOM")}}
-<p>Retourne l'<code><strong>URL</strong></code> du {{domxref("Document")}} sous forme de string (lecture seule).</p>
+Retourne l'**`URL`** du {{domxref("Document")}} sous forme de string (lecture seule).
-<h2 id="Syntax">Syntaxe</h2>
+## Syntaxe
-<pre class="brush: js">var <em>string</em> = document.URL
-</pre>
+```js
+var string = document.URL
+```
-<h2 id="Specification">Exemple</h2>
+## Exemple
-<pre><code>var currentURL = document.URL;
-alert(currentURL);</code></pre>
+ var currentURL = document.URL;
+ alert(currentURL);
-<h2 id="Specification">Specification</h2>
+## Specification
-<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>
+- [DOM Level 2 HTML: URL](http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-46183437)