I’m busy working on a web app that basically has 5 pages that one can jump to from the navigation bar (obviously). But instead of using links the normal why where you’ll get directed to a different web page entirely, I want to keep everything in my “index.html”. So when you click on one of the navigation bar links, an iFrame will just get populated with a different document e.g. about.html, controlpanel.html, profile.html etc…
Is this good practice or are there better ways of doing this?
Thanks in advance!
One problem I see is that your users won’t be able to bookmark / share any links to your pages.
All they can do is with the
/index.html.Edit:
Based on your comment, in order to avoid redundancy in coding header / footer, this is what I recommend:
init.jsp
header.jsp
footer.jsp
page1.jsp
page2.jsp