From c05efa8d7ae464235cf83d7c0956e42dc6974103 Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:14 +0200 Subject: move *.html to *.md --- files/fr/web/api/window/scrollby/index.html | 56 ----------------------------- files/fr/web/api/window/scrollby/index.md | 56 +++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 56 deletions(-) delete mode 100644 files/fr/web/api/window/scrollby/index.html create mode 100644 files/fr/web/api/window/scrollby/index.md (limited to 'files/fr/web/api/window/scrollby') diff --git a/files/fr/web/api/window/scrollby/index.html b/files/fr/web/api/window/scrollby/index.html deleted file mode 100644 index 8713385ca8..0000000000 --- a/files/fr/web/api/window/scrollby/index.html +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Window.scrollBy() -slug: Web/API/Window/scrollBy -tags: - - API - - CSSOM View - - Méthode - - Référence(2) -translation_of: Web/API/Window/scrollBy ---- -

{{ APIRef() }}

- -

Fait défiler le document dans la fenêtre du nombre de pixels passé en paramètre.

- -

Syntaxe

- -
window.scrollBy(X, Y);
-
- -

Paramètres

- - - -

Des coordonnées positives feront défiler à droite et vers le bas de la page. Des coordonnées négatives feront défiler à gauche et vers le haut de la page. 

- -

Exemples

- -
// fait défiler d'une page
-window.scrollBy(0, window.innerHeight);
-
- -

Notes

- -

window.scrollBy fait défiler en fonction d'un nombre précis, alors que window.scroll fait défiler vers une position absolue dans le document. Voir aussi window.scrollByLines, window.scrollByPages

- -

Spécification

- - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{ SpecName('CSSOM View', '#dom-window-scrollby', 'window.scrollBy()') }}{{ Spec2('CSSOM View') }}Définition initiale.
diff --git a/files/fr/web/api/window/scrollby/index.md b/files/fr/web/api/window/scrollby/index.md new file mode 100644 index 0000000000..8713385ca8 --- /dev/null +++ b/files/fr/web/api/window/scrollby/index.md @@ -0,0 +1,56 @@ +--- +title: Window.scrollBy() +slug: Web/API/Window/scrollBy +tags: + - API + - CSSOM View + - Méthode + - Référence(2) +translation_of: Web/API/Window/scrollBy +--- +

{{ APIRef() }}

+ +

Fait défiler le document dans la fenêtre du nombre de pixels passé en paramètre.

+ +

Syntaxe

+ +
window.scrollBy(X, Y);
+
+ +

Paramètres

+ + + +

Des coordonnées positives feront défiler à droite et vers le bas de la page. Des coordonnées négatives feront défiler à gauche et vers le haut de la page. 

+ +

Exemples

+ +
// fait défiler d'une page
+window.scrollBy(0, window.innerHeight);
+
+ +

Notes

+ +

window.scrollBy fait défiler en fonction d'un nombre précis, alors que window.scroll fait défiler vers une position absolue dans le document. Voir aussi window.scrollByLines, window.scrollByPages

+ +

Spécification

+ + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{ SpecName('CSSOM View', '#dom-window-scrollby', 'window.scrollBy()') }}{{ Spec2('CSSOM View') }}Définition initiale.
-- cgit v1.2.3-54-g00ecf