4 ms·
The problem with relying on anchors means it stays in the browser history, so if you press 'back', you get the modal dialog again! I don't think this is very u
by adamjc 10y ago
The problem with relying on anchors means it stays in the browser history, so if you press 'back', you get the modal dialog again!
I don't think this is very useful, but it is a fun exercise in CSS.
- taspeotis 10y agoJust use JavaScript to clear the browser history. Bingo! Pure CSS modal.
- pori 10y agoI see what you did there.
- dr_swe 10y agoWell, you can manipulate the browser history to remove those anchor links :)
- MarkCole 10y agoTo be fair in some cases this can be a benefit. There have been occasions where I have wanted to link to content contained within a modal. You are right in that there are also occasions where this isn't desired.
- zepolen 10y agoModal can be used with checkbox - and it's sweet: https://codepen.io/Idered/pen/vytkH https://codepen.io/Idered/pen/vytkH