I think you're talking about single page applications, commonly known as SPA.
Basically what this concept means is you have let's say an index.html
and inside that you have a section of each page defaulted to be hidden and via javascript and rest oriented services managing and handling the content of each section based on the users interaction.
The single page applications are well known by using hashtag for navigation, in the provided fiddle this is done with the hash symbol.
You can easily access the hash value via this property:
console.log(window.location.hash);
Here is a fiddle I made, The page transitions are fully functional, give me a bit to include history api functionality.
Here is what this fiddle does:
- If you access the base url it will display the index section.
- If you access via url to the base url it will display the index section.
- If you access
/1#sectionname
if that section is available it will show it, otherwise it will show you that the section you've tried to reach is not available, so it will show a not found message.
- History api support via jQuery.
- Navigation through the footer links.
Please be patient as I add history functionality and let me know if you need further details.
Here is the wikipedia page for Single Page Applications in case you want to read a bit more.
EDIT:
I've also made a blog post about it
Hope it helps!