From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/fr/web/api/window/scroll/index.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 files/fr/web/api/window/scroll/index.html (limited to 'files/fr/web/api/window/scroll') diff --git a/files/fr/web/api/window/scroll/index.html b/files/fr/web/api/window/scroll/index.html new file mode 100644 index 0000000000..82075c6ba2 --- /dev/null +++ b/files/fr/web/api/window/scroll/index.html @@ -0,0 +1,27 @@ +--- +title: window.scroll +slug: Web/API/Window/scroll +translation_of: Web/API/Window/scroll +--- +

{{ ApiRef() }}

+

Résumé

+

Fait glisser la fenêtre vers une position particulière du document

+

Syntax

+
window.scroll(x-coord,y-coord)
+
+

Parameters

+ +

Example

+
 // Déplace la fenêtre 100px plus bas
+ <button onClick="scroll(0, 100);">click to scroll down 100 pixels</button>
+
+

Notes

+

window.scrollTo a un effet identique à cette méthode. Pour se déplacer par pas dans la page, utilisez window.scrollBy. Jetez aussi un œil à window.scrollByLines et window.scrollByPages.

+

Specification

+

DOM Level 0. Hors spécification.

+
+  
+

{{ languages( { "ja": "ja/DOM/window.scroll", "pl": "pl/DOM/window.scroll" } ) }}

-- cgit v1.2.3-54-g00ecf