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/pt-br/web/api/window/scrollto/index.html | 56 ++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 files/pt-br/web/api/window/scrollto/index.html (limited to 'files/pt-br/web/api/window/scrollto') diff --git a/files/pt-br/web/api/window/scrollto/index.html b/files/pt-br/web/api/window/scrollto/index.html new file mode 100644 index 0000000000..10d844a41f --- /dev/null +++ b/files/pt-br/web/api/window/scrollto/index.html @@ -0,0 +1,56 @@ +--- +title: Window.scrollTo() +slug: Web/API/Window/scrollTo +tags: + - API + - CSSOM View + - NeedsCompatTable + - NeedsMarkupWork + - NeedsSpecTable + - Referencia + - metodo +translation_of: Web/API/Window/scrollTo +--- +
{{ APIRef }}
+ +

Resumo

+ +

Realiza a rolagem para um conjunto de coordenadas em particular em um documento.

+ +

Sintaxe

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

Parâmetros

+ + + +

Exemplo

+ +
window.scrollTo( 0, 1000 );
+ +

Notas

+ +

Essa função é efetivamente a mesma que window.scroll. Para rolagem relativa, veja window.scrollBy, window.scrollByLines e window.scrollByPages.

+ +

Especificações

+ + + + + + + + + + + + + + + + +
EspecificaçãoStatusComentário
{{ SpecName('CSSOM View', '#dom-window-scroll', 'window.scroll()') }}{{ Spec2('CSSOM View') }}Definição inicial.
-- cgit v1.2.3-54-g00ecf