aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/navigatoronline/index.html
blob: 118222cd819750c8dacca3c31d9128d3fa9e8471 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
title: NavigatorOnLine
slug: Web/API/NavigatorOnLine
tags:
  - API
translation_of: Web/API/NavigatorOnLine
---
<p>{{APIRef("HTML DOM")}}</p>

<p>L'interface <code><strong>NavigatorOnLine</strong></code> contient les méthodes et les propriétés concernant l'état de connexion du navigateur.</p>

<p>Il n'y a pas d'objet de type <code>NavigatorOnLine</code>, mais d'autres interfaces l'implémentent comme {{domxref("Navigator")}} ou {{domxref("WorkerNavigator")}}.</p>

<h2 id="Propriétés">Propriétés</h2>

<p><em>L'interface <code>NavigatorOnLine</code></em><em> n'hérite d'aucune propriété.</em></p>

<dl>
 <dt>{{domxref("NavigatorOnLine.onLine")}} {{readonlyInline}}</dt>
 <dd>Retourne un {{domxref("Boolean")}} indicant si le navigateur est connecté.</dd>
</dl>

<h2 id="Méthodes">Méthodes</h2>

<p><em>The </em><em><code>NavigatorOnLine</code></em><em> interface neither implements, nor inherit any method.</em></p>

<h2 id="Spécifications">Spécifications</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Spécifications</th>
   <th scope="col">Status</th>
   <th scope="col">Commentaire</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('HTML WHATWG', '#navigatoronline', 'NavigatorOnLine')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>Pas de changement depuis la dernière version, {{SpecName('HTML5 W3C')}}</td>
  </tr>
  <tr>
   <td>{{SpecName('HTML5 W3C', '#navigatoronline', 'NavigatorOnLine')}}</td>
   <td>{{Spec2('HTML5 W3C')}}</td>
   <td>Version apportant la définition initiale: {{SpecName('HTML WHATWG')}}</td>
  </tr>
 </tbody>
</table>

<h2 id="Compatibilité_des_naviagteurs">Compatibilité des naviagteurs</h2>



<p>{{Compat("api.NavigatorOnLine")}}</p>

<h2 id="Voir_aussi">Voir aussi</h2>

<ul>
 <li>L'interface {{domxref("Navigator")}} qui l'implémente;</li>
 <li><a href="/fr/docs/Web/API/NavigatorOnLine/Online_and_offline_events">Les évènements online et offline</a>.</li>
</ul>