简体   繁体   中英

how to add pagination in HTML

I have created one .html page. I have to use pagination in it so that i can avoid scrolling upto last page.and i can move to next page by click on button("Next")

You can create a form like this:

<form action="nextpage.html" method="get">
<input type="submit" value="Next" />
</form>

That will give you a form with a button that redirects the user to the page nextpage.html

Assuming you are looking for a way to implement pagination, take a look at this jquery plugin. And I believe you will find a tons more plugins across the web.

Use Jquery Pager

You can find its Demo here.

You can do that with PHP. With PHP, you can dynamcally generate HTML pages, in this case with a certain amount of items on it and links to the next and previous page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM