Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Paginate HTML in a webpage
JavaScript
tree: e44b04376d

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE
README.md
example.html
jshtmlpagination.js

README.md

JSHTMLPagination

JSHTMLPagination is a small library to achieve pagination in modern browsers (currently supported Chrome and Safari).

Usage

To paginate you need a container which is going to be the pagination window and some text to paginate.

var pager = new JSHTMLPagination(container_elm, html_to_paginate);

To control the behavior you can use the following methods

pager.next(); // to show next page

and

pager.previous(); // to show previous page

See example.html for a better example or this demo.

Something went wrong with that request. Please try again.