Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's worth noting when doing this it registers each anchor in the browser history. If you want to avoid this, checkbox hacking with the :checked selector is an option.


Don't do this. Registering the anchor is for back button compatibility; I'm so tired of spas and 'modern' js constantly breaking it.


I am tired of that too, but you can use the checkbox hack to implement features such as tabbed content for which storing user selections in the browser's history would probably result in unintuitive UX.


Isn’t that the point of links though? If you use checkboxes you won’t be able to share a specific page with a friend.


I also suggested an update.. but but but.... Its a normal webpage with normal history behavior... STOP TRYING TO FIX IT! ENOUGH ALREADY! (ha-ha)


> If you want to avoid this, checkbox hacking with the :checked selector is an option.

Any Screenshots/Tutorial?



> CodePen requires JavaScript to render the code and preview areas in this view.

Thanks, but no.


You could ad some JS to play with history pushState and popState to make sure the history works.


> You could ad some JS to play

No. This showcase example especially designed to represent power of non-JS web-design.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: