aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/api/window/history
diff options
context:
space:
mode:
Diffstat (limited to 'files/it/web/api/window/history')
-rw-r--r--files/it/web/api/window/history/index.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/files/it/web/api/window/history/index.html b/files/it/web/api/window/history/index.html
new file mode 100644
index 0000000000..5f087d8d0e
--- /dev/null
+++ b/files/it/web/api/window/history/index.html
@@ -0,0 +1,37 @@
+---
+title: Window.history
+slug: Web/API/Window/history
+translation_of: Web/API/Window/history
+---
+<div>{{APIRef}}</div>
+
+<p>Restituisce un riferimento all'oggetto <code>history</code>, che fornisce un'interfaccia per manipolare la Cronologia del browser.</p>
+
+<h2 id="Sintassi" name="Sintassi">Sintassi</h2>
+
+<pre class="eval"><i>oggettoHistory</i> = window.history
+</pre>
+
+<h3 id="Parametri" name="Parametri">Parametri</h3>
+
+<ul>
+ <li><code>oggettoHistory</code> è un riferimento a un oggetto <code>history</code></li>
+</ul>
+
+<h2 id="Esempio" name="Esempio">Esempio</h2>
+
+<pre>h = window.history;
+if ( h.length ) { // se c'è una cronologia
+ h.back(); // vai indietro nella cronologia
+}
+</pre>
+
+<h2 id="Note" name="Note">Note</h2>
+
+<p>L'oggetto <code>history</code> fornisce la seguente interfaccia: current, length, next, previous, back(), forward(), go().</p>
+
+<p>E' possibile accedere a questa interfaccia dall'oggetto <code>window</code> chiamando, per esempio, <code>window.history.back()</code>.</p>
+
+<h2 id="Specifiche" name="Specifiche">Specifiche</h2>
+
+<p>HTML5</p>