Clever web dev trick for checking browser history
Sniff browser history for improved user experience
Talk about sufficiently advanced technology. Although you will surely see this post linked many times this week, I have to throw in my own kudos. Fantastic trick, Niall!
In a nutshell, Niall shows how you can use a combination of CSS and JavaScript to selectively display information based on previously visited URLs in your visitor’s browser history. Have you been to Digg? Then Niall’s site displays a “Digg This” badge (and, importantly for Niall’s purposes, not 100 other badges for sites you haven’t used).
Try Niall’s live example to see this stunner in action.
Dang. That sound you just heard? That’s a few million people scurrying to hit “Clear History.” Terrific work, Niall – totally clever.
Now, regrettably, I suspect the race begins for seeing how horribly something like this can be abused.
- Merlin's blog
- 24324 reads
