Paginate Pagination Script Include table.js or table.min.js call paginate function with two parameters: Number of rows per page of table and the table to be paginated Example : paginate(10,document.getElementById("table1")); Demo with 100 rows Demo with 20000 rows