From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/ru/web/api/window/scrollbylines/index.html | 46 ++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 files/ru/web/api/window/scrollbylines/index.html (limited to 'files/ru/web/api/window/scrollbylines/index.html') diff --git a/files/ru/web/api/window/scrollbylines/index.html b/files/ru/web/api/window/scrollbylines/index.html new file mode 100644 index 0000000000..6f2c178a2b --- /dev/null +++ b/files/ru/web/api/window/scrollbylines/index.html @@ -0,0 +1,46 @@ +--- +title: Window.scrollByLines() +slug: Web/API/Window/scrollByLines +translation_of: Web/API/Window/scrollByLines +--- +
{{ ApiRef() }}
+ +
+

{{Non-standard_header}}

+
+ +

Summary

+ +

Прокручивает документ на заданное число строк.

+ +

Syntax

+ +
window.scrollByLines(lines)
+
+ +

Parameters

+ + + +

Example

+ +
<!-- прокручивает страницу вниз на 5 линий. -->
+<button onclick="scrollByLines(5);">down 5 lines</button>
+
+ +
<!-- прокручивает страницу вверх на 5 линий. -->
+<button onclick="scrollByLines(-5);">up 5 lines</button>
+
+ +

Specification

+ +

Не является частью спецификации

+ +

See also

+ + -- cgit v1.2.3-54-g00ecf