aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/api/document/url/index.html
blob: e3a04cf9534d8e4509ef7f70e9bae5c4955bf7b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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>