5 ms·
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
by KarlTheCool 6y ago
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.
- app4soft 6y ago> If you want to avoid this, checkbox hacking with the :checked selector is an option. Any Screenshots/Tutorial?
- axguscbklp 6y agohttps://css-tricks.com/the-checkbox-hack/ https://css-tricks.com/the-checkbox-hack/
- app4soft 6y ago> CodePen requires JavaScript to render the code and preview areas in this view. Thanks, but no.
- pmlnr 6y agoDon't do this. Registering the anchor is for back button compatibility; I'm so tired of spas and 'modern' js constantly breaking it.
- axguscbklp 6y agoI 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.
- katsura 6y agoIsn’t that the point of links though? If you use checkboxes you won’t be able to share a specific page with a friend.
- 6510 6y agoI also suggested an update.. but but but.... Its a normal webpage with normal history behavior... STOP TRYING TO FIX IT! ENOUGH ALREADY! (ha-ha)
- graderjs 6y agoYou could ad some JS to play with history pushState and popState to make sure the history works.
- app4soft 6y ago> You could ad some JS to play No. This showcase example especially designed to represent power of non-JS web-design.