Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 348 Bytes

README.md

File metadata and controls

6 lines (4 loc) · 348 Bytes

Hashing Your Tabs

SPA example creating tabs that reflect and update location.hash.

When a user clicks a tab, the page does not reload and the URL is appended by a hash. The hash is used to save state, so when the user clicks the back or forward button, the active/inactive tabs, menu, and URL are updated to reflect the change.