From 1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:24 +0200 Subject: convert content to md --- files/fr/web/api/window/find/index.md | 83 +++++++++++++++++------------------ 1 file changed, 41 insertions(+), 42 deletions(-) (limited to 'files/fr/web/api/window/find') diff --git a/files/fr/web/api/window/find/index.md b/files/fr/web/api/window/find/index.md index b9743102e6..3c0ea82ff3 100644 --- a/files/fr/web/api/window/find/index.md +++ b/files/fr/web/api/window/find/index.md @@ -13,66 +13,65 @@ tags: - find translation_of: Web/API/Window/find --- -
{{ApiRef}}{{Non-standard_Header}}
+{{ApiRef}}{{Non-standard_Header}} -
-

Note: La prise en charge de Window.find() pourrait changer dans les futures versions de Gecko. Voir {{Bug("672395")}}.

-
+> **Note :** La prise en charge de `Window.find()` pourrait changer dans les futures versions de Gecko. Voir {{Bug("672395")}}. -

La méthode Window.find() trouve une chaîne dans une fenêtre.

+La méthode **`Window.find()`** trouve une chaîne dans une fenêtre. -

Syntaxe

+## Syntaxe -
window.find(aString, aCaseSensitive, aBackwards, aWrapAround,
-            aWholeWord, aSearchInFrames, aShowDialog);
+ window.find(aString, aCaseSensitive, aBackwards, aWrapAround, + aWholeWord, aSearchInFrames, aShowDialog); -
-
aString
-
La chaîne de caractère à rechercher.
-
aCaseSensitive
-
{{jsxref("Boolean")}}. Si true, spécifie une recherche sensible à la casse.
-
aBackwards
-
{{jsxref("Boolean")}}. Si true, spécifie une recherche vers l'arrière.
-
aWrapAround
-
{{jsxref("Boolean")}}. Si true, spécifie une recherche enveloppante.
-
aWholeWord {{Unimplemented_Inline}}
-
{{jsxref("Boolean")}}. Si true, spécifie une recherche de mot entier. Ceci n'est pas implémenté; voir {{bug(481513)}}.
-
aSearchInFrames
-
{{jsxref("Boolean")}}. Si true, spécifie une recherche dans les cadres.
-
+- `aString` + - : La chaîne de caractère à rechercher. +- `aCaseSensitive` + - : {{jsxref("Boolean")}}. Si `true`, spécifie une recherche sensible à la casse. +- `aBackwards` + - : {{jsxref("Boolean")}}. Si `true`, spécifie une recherche vers l'arrière. +- `aWrapAround` + - : {{jsxref("Boolean")}}. Si `true`, spécifie une recherche enveloppante. +- `aWholeWord` {{Unimplemented_Inline}} + - : {{jsxref("Boolean")}}. Si `true`, spécifie une recherche de mot entier. Ceci n'est pas implémenté; voir {{bug(481513)}}. +- `aSearchInFrames` + - : {{jsxref("Boolean")}}. Si `true`, spécifie une recherche dans les cadres. -

Retourne

+### Retourne -

true si la chaîne est trouvé; autrement, false.

+`true` si la chaîne est trouvé; autrement, `false`. -

Exemple

+## Exemple -

JavaScript

+### JavaScript -
findString = function findText(text) {
+```js
+findString = function findText(text) {
   alert("String \x22" + text + "\x22 found? " + window.find(text));
-}
+} +``` -

HTML

+### HTML -
<p>Apples, Bananas, and Oranges.</p>
-<button type="button" onClick='findString("Apples")'>Search for Apples</button>
-<button type="button" onClick='findString("Banana")'>Search for Banana</button>
-<button type="button" onClick='findString("Orange")'>Search for Orange</button>
-
+```html +

Apples, Bananas, and Oranges.

+ + + +``` -

Résultat

+### Résultat -

{{EmbedLiveSample("Example")}}

+{{EmbedLiveSample("Example")}} -

Notes

+## Notes -

Dans certains navigateurs, Window.find() sélectionne (met en évidence) le contenu trouvé sur le site.

+Dans certains navigateurs, `Window.find()` sélectionne (met en évidence) le contenu trouvé sur le site. -

Spécification

+## Spécification -

Cela ne fait partie d'aucune spécification.

+Cela ne fait partie d'aucune spécification. -

Compatibilité des navigateurs

+## Compatibilité des navigateurs -

Cette méthode fonctionne dans de nombreux navigateurs modernes, notamment Firefox, Chrome, et Safari.

+Cette méthode fonctionne dans de nombreux navigateurs modernes, notamment Firefox, Chrome, et Safari. -- cgit v1.2.3-54-g00ecf