aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/selection/tostring
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-10-02 17:20:24 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-10-02 17:30:20 +0200
commit1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde (patch)
tree30a56efd3eff3a01bd1611e1840fdbbfacf544a4 /files/fr/web/api/selection/tostring
parentc05efa8d7ae464235cf83d7c0956e42dc6974103 (diff)
downloadtranslated-content-1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde.tar.gz
translated-content-1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde.tar.bz2
translated-content-1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde.zip
convert content to md
Diffstat (limited to 'files/fr/web/api/selection/tostring')
-rw-r--r--files/fr/web/api/selection/tostring/index.md49
1 files changed, 28 insertions, 21 deletions
diff --git a/files/fr/web/api/selection/tostring/index.md b/files/fr/web/api/selection/tostring/index.md
index c0e4836d47..23ce054696 100644
--- a/files/fr/web/api/selection/tostring/index.md
+++ b/files/fr/web/api/selection/tostring/index.md
@@ -5,24 +5,31 @@ tags:
- Référence_du_DOM_Gecko
translation_of: Web/API/Selection/toString
---
-<p>{{ ApiRef() }}</p>
-<h3 id="R.C3.A9sum.C3.A9">Résumé</h3>
-<p>Renvoie une chaîne de caractères représentant l'actuel objet <code>selection</code>, i.e. le texte sélectionné.</p>
-<h3 id="Syntaxe">Syntaxe</h3>
-<pre class="eval"><i>string</i> =<i>sel</i>.toString()
-</pre>
-<ul>
- <li><code>string</code> est la représentation sous la forme d'une chaîne de caractères de la sélection.</li>
-</ul>
-<h3 id="Param.C3.A8tres">Paramètres</h3>
-<p>Aucun.</p>
-<h3 id="Description">Description</h3>
-<p>Cette méthode renvoie le texte sélectionné.</p>
-<p>En <a href="fr/JavaScript">JavaScript</a>, cette méthode est appelée automatiquement pour des objets <code>selection</code> aux fonctions nécessitant un paramètre <code>string</code> :</p>
-<pre class="eval">alert(window.getSelection()) // Appel automatique
-alert(window.getSelection().toString()) // Appel explicite
-</pre>
-<h3 id="Voir_aussi">Voir aussi</h3>
-<ul>
- <li><a href="fr/R%c3%a9f%c3%a9rence_de_JavaScript_1.5_Core/Objets_globaux/Object/toString">Object.toString</a></li>
-</ul> \ No newline at end of file
+{{ ApiRef() }}
+
+### Résumé
+
+Renvoie une chaîne de caractères représentant l'actuel objet `selection`, i.e. le texte sélectionné.
+
+### Syntaxe
+
+ string =sel.toString()
+
+- `string` est la représentation sous la forme d'une chaîne de caractères de la sélection.
+
+### Paramètres
+
+Aucun.
+
+### Description
+
+Cette méthode renvoie le texte sélectionné.
+
+En [JavaScript](fr/JavaScript), cette méthode est appelée automatiquement pour des objets `selection` aux fonctions nécessitant un paramètre `string` :
+
+ alert(window.getSelection()) // Appel automatique
+ alert(window.getSelection().toString()) // Appel explicite
+
+### Voir aussi
+
+- [Object.toString](fr/R%c3%a9f%c3%a9rence_de_JavaScript_1.5_Core/Objets_globaux/Object/toString)