I'm creating some 10 HTML pages in my website. I would like to have a previous and next navigation button/link in all pages.so how can we get this?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
If yours is a Static Website with just 10 pages to navigate two and fro, Add the manual navigation links.
<a href="prev-page.html"> Previous Page </a>
<a href="next-page.html"> Next Page </a>
However if its not static there are many Pagination scripts that can be handy. just Google it.
回答2:
Since your question not clear, Let me assume you have 10 static html pages.
now u just add the following code in all pages
<input type="button" name="b1" value="prev" onclick="location.href='pre_page.html'">
<input type="button" name="b2" value="next" onclick="location.href='next_page.html'">
If this is not what you are looking for, please explain your requirements in more detail.
回答3:
You can do the below for your static HTML pages.
<a href="xxx.html">Back</a>|<a href="xxx.html">Next</a>
You have to manually put the html links on your individual pages that you want to show as previous or next for those individual pages.