diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
commit | 074785cea106179cb3305637055ab0a009ca74f2 (patch) | |
tree | e6ae371cccd642aa2b67f39752a2cdf1fd4eb040 /files/pt-br/web/api/window/scrollbypages | |
parent | da78a9e329e272dedb2400b79a3bdeebff387d47 (diff) | |
download | translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.gz translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.bz2 translated-content-074785cea106179cb3305637055ab0a009ca74f2.zip |
initial commit
Diffstat (limited to 'files/pt-br/web/api/window/scrollbypages')
-rw-r--r-- | files/pt-br/web/api/window/scrollbypages/index.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/files/pt-br/web/api/window/scrollbypages/index.html b/files/pt-br/web/api/window/scrollbypages/index.html new file mode 100644 index 0000000000..1ad5c70c47 --- /dev/null +++ b/files/pt-br/web/api/window/scrollbypages/index.html @@ -0,0 +1,41 @@ +--- +title: Window.scrollByPages() +slug: Web/API/Window/scrollByPages +translation_of: Web/API/Window/scrollByPages +--- +<p>{{ ApiRef() }}{{Non-standard_header}}</p> + +<h3 id="Summary" name="Summary">Resumo</h3> + +<p>Rola o documento atual para a página especificada.</p> + +<h3 id="Syntax" name="Syntax">Sintaxe</h3> + +<pre class="eval">window.scrollByPages(<em>pages</em>) +</pre> + +<h3 id="Parameters" name="Parameters">Parâmetros</h3> + +<ul> + <li><strong><code>pages</code> </strong>é o número de páginas a serem roladas.</li> + <li><strong><code>pages</code></strong> pode ser um número inteiro positivo ou negativo.</li> +</ul> + +<h3 id="Example" name="Example">Exemplo</h3> + +<pre>// rola o documento para baixo até a página 1 +window.scrollByPages(1); + +// rola o documento para cima até a página 1 +window.scrollByPages(-1); +</pre> + +<h3 id="Notes" name="Notes">Notas</h3> + +<p>Veja também <a href="/en/DOM/window.scrollBy" title="en/DOM/window.scrollBy">window.scrollBy</a>, <a href="/en/DOM/window.scrollByLines" title="en/DOM/window.scrollByLines">window.scrollByLines</a>, <a href="/en/DOM/window.scroll" title="en/DOM/window.scroll">window.scroll</a>, <a href="/en/DOM/window.scrollTo" title="en/DOM/window.scrollTo">window.scrollTo</a>.</p> + +<h3 id="Specification" name="Specification">Specification</h3> + +<p>DOM Level 0. Not part of specification.</p> + +<p>{{ languages( { "ja": "ja/DOM/window.scrollByPages", "pl": "pl/DOM/window.scrollByPages", "zh-cn": "zh-cn/DOM/window.scrollByPages" } ) }}</p> |