aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/api/document/url/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/it/web/api/document/url/index.html')
-rw-r--r--files/it/web/api/document/url/index.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/files/it/web/api/document/url/index.html b/files/it/web/api/document/url/index.html
new file mode 100644
index 0000000000..e3a04cf953
--- /dev/null
+++ b/files/it/web/api/document/url/index.html
@@ -0,0 +1,29 @@
+---
+title: document.URL
+slug: Web/API/Document/URL
+translation_of: Web/API/Document/URL
+---
+<div>{{APIRef("DOM")}}</div>
+
+<p>Restituisce l'URL del documento corrente.</p>
+
+<h3 id="Sintassi" name="Sintassi">Sintassi</h3>
+
+<pre class="eval"><i>stringa</i> = document.URL
+</pre>
+
+<h3 id="Esempio" name="Esempio">Esempio</h3>
+
+<pre class="eval">var currentURL = document.URL;
+alert(currentURL);
+</pre>
+
+<h3 id="Notes.C3.B9" name="Notes.C3.B9">Notesù</h3>
+
+<p><code>URL</code> è un sostituto della proprietà non standard <code>document.location.href</code>. Tuttavia <code>document.URL</code> è di sola lettura, diversamente da <code>document.location.href</code>.</p>
+
+<h3 id="Specifiche" name="Specifiche">Specifiche</h3>
+
+<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-46183437">DOM Level 2 HTML: URL</a></p>
+
+<p>{{ languages( { "ja": "ja/DOM/document.URL", "pl": "pl/DOM/document.URL" } ) }}</p>