aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/positionoptions/timeout/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/api/positionoptions/timeout/index.md')
-rw-r--r--files/fr/web/api/positionoptions/timeout/index.md45
1 files changed, 45 insertions, 0 deletions
diff --git a/files/fr/web/api/positionoptions/timeout/index.md b/files/fr/web/api/positionoptions/timeout/index.md
new file mode 100644
index 0000000000..4454f93754
--- /dev/null
+++ b/files/fr/web/api/positionoptions/timeout/index.md
@@ -0,0 +1,45 @@
+---
+title: PositionOptions.timeout
+slug: Web/API/PositionOptions/timeout
+translation_of: Web/API/PositionOptions/timeout
+---
+<div>{{securecontext_header}}{{APIRef("Geolocation API")}}</div>
+
+<p>La propriété <code><strong>PositionOptions.timeout</strong></code> est de type <code>long</code> positif représentant la durée maximale (en millisecondes) que le périphérique est autorisé à prendre pour renvoyer une position. La valeur par défaut est <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Infinity">Infinity</a></code>, ce qui signifie que <code>getCurrentPosition()</code> ne retournera rien tant que la position n'est pas disponible.</p>
+
+<h2 id="Syntaxe">Syntaxe</h2>
+
+<pre class="syntaxbox"><var>positionOptions</var>.timeout = <var>timeLength</var>
+</pre>
+
+<h2 id="Spécifications">Spécifications</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Spécification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Commentaire</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('Geolocation', '#dom-positionoptions-timeout', 'PositionOptions.timeout')}}</td>
+ <td>{{Spec2('Geolocation')}}</td>
+ <td>Définition initiale.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
+
+
+
+<p>{{Compat("api.PositionOptions.timeout")}}</p>
+
+<h2 id="Voir_aussi">Voir aussi</h2>
+
+<ul>
+ <li><a href="/fr/docs/WebAPI/Using_geolocation">Utiliser la géolocalisation</a></li>
+ <li>L'interface {{domxref("PositionOptions")}} auquel il appartient.</li>
+</ul>