diff options
Diffstat (limited to 'files/it/web/api/navigator/cookieenabled')
| -rw-r--r-- | files/it/web/api/navigator/cookieenabled/index.html | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/files/it/web/api/navigator/cookieenabled/index.html b/files/it/web/api/navigator/cookieenabled/index.html new file mode 100644 index 0000000000..4905b8deb8 --- /dev/null +++ b/files/it/web/api/navigator/cookieenabled/index.html @@ -0,0 +1,83 @@ +--- +title: Navigator.cookieEnabled +slug: Web/API/Navigator/cookieEnabled +translation_of: Web/API/Navigator/cookieEnabled +--- +<p>{{ ApiRef("HTML DOM") }}</p> + +<h2 id="Summary" name="Summary">Riassunto</h2> + +<p>Restituisce un valore booleano che indica se i cookie abilitati o meno (sola lettura).</p> + +<h2 id="Syntax" name="Syntax">Sintassi</h2> + +<pre class="eval">var cookieEnabled = navigator.cookieEnabled; +</pre> + +<ul> + <li><code>cookieEnabled</code> è un risultato Booleano <code>true</code> o <code>false</code>.</li> +</ul> + +<h2 id="Example" name="Example">Example</h2> + +<pre class="brush: js">if (!navigator.cookieEnabled) { + // dire all'utente che l'attivazione dei cookie rende le pagine web più utile} +</pre> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + +<p>{{ CompatibilityTable() }}</p> + +<div id="compat-desktop"> +<table class="compat-table"> + <tbody> + <tr> + <th>Feature</th> + <th>Chrome</th> + <th>Firefox (Gecko)</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari</th> + </tr> + <tr> + <td>Basic support</td> + <td>Yes</td> + <td>{{ CompatGeckoDesktop(1.0) }}</td> + <td>{{ CompatUnknown() }}</td> + <td>{{ CompatUnknown() }}</td> + <td>{{ CompatUnknown() }}</td> + </tr> + </tbody> +</table> +</div> + +<div id="compat-mobile"> +<table class="compat-table"> + <tbody> + <tr> + <th>Feature</th> + <th>Android</th> + <th>Firefox Mobile (Gecko)</th> + <th>IE Mobile</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>Basic support</td> + <td>{{ CompatUnknown() }}</td> + <td>{{ CompatGeckoMobile(1.0) }}</td> + <td>{{ CompatUnknown() }}</td> + <td>{{ CompatUnknown() }}</td> + <td>{{ CompatUnknown() }}</td> + </tr> + </tbody> +</table> +</div> + +<h3 id="Note_di_Gecko">Note di Gecko</h3> + +<p>Prima di Gecko 8.0 {{ geckoRelease("8.0") }}, <code>window.navigator.cookieEnabled</code> potrebbe segnalare il risultato errato se un'eccezione del sito è stata in vigore per la pagina in cui è stato eseguito il controllo. Questo è stato risolto.</p> + +<h2 id="Specification" name="Specification">Specifications</h2> + +<p>HTML WHATWG</p> |
