aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/api/windowtimers/clearinterval/index.html
blob: 63b06829839a74f1fbc90dbf28f9f04198fc68bc (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: WindowTimers.clearInterval()
slug: Web/API/WindowTimers/clearInterval
translation_of: Web/API/WindowOrWorkerGlobalScope/clearInterval
---
<div>
<div>{{APIRef("HTML DOM")}}</div>
</div>

<p>Interrompe l'azione ripetuta dall'utilizzo del comando {{domxref("window.setInterval", "setInterval")}}.</p>

<h2 id="Syntax" name="Syntax">Sintassi</h2>

<pre class="syntaxbox"><em>window</em>.clearInterval(<var>intervalID</var>)
</pre>

<p><font face="Consolas, Liberation Mono, Courier, monospace">intervalID è un identificatore dell'azione ripetuta che vuoi cancellare. Questo ID viene passato con il return di setInterval().</font></p>

<h2 id="Example" name="Example">Esempio</h2>

<p>Vedi <a href="/en-US/docs/DOM/window.setInterval#Example" title="DOM/window.setInterval#Example"><code>setInterval()</code> example</a>.</p>

<h2 id="Specification" name="Specification">Specifiche</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG', 'timers.html#timers', 'clearInterval')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
  </tr>
 </tbody>
</table>

<h2 id="See_also" name="See_also">Vedi anche</h2>

<ul>
 <li><a href="/en-US/docs/JavaScript/Timers" title="JavaScript/Timers">JavaScript timers</a></li>
 <li>{{domxref("WindowTimers.setTimeout")}}</li>
 <li>{{domxref("WindowTimers.setInterval")}}</li>
 <li>{{domxref("WindowTimers.clearTimeout")}}</li>
 <li>{{domxref("window.requestAnimationFrame")}}</li>
 <li><a href="/en-US/docs/JavaScript/Timers/Daemons" title="JavaScript/Timers/Daemons"><em>Daemons</em> management</a></li>
</ul>