window.scrollByPages

指定されたページ数だけスクロールさせます。このプロパティはFirefoxで利用することができます。

構文

scrollByPages(ページ数)
window.scrollByPages(ページ数)

例文

<html>
 <head>
  <title>window.scrollByPages</title>
  <script type="text/javascript"><!--
   function winScroll() {
    window.scrollByPages(2);
   }
  // --></script>
 </head>
 <body>
 <form>
  <input type="button" value="Scroll" onClick="winScroll()">
 </form>
 <div style="width:1000px;height:3000px;background-image:url(sky.jpg)"><img src="sky.jpg"></div>
 </body>
</html>

関連記事

スポンサーリンク

RANK関数 順位を求める

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る