Not much to say, really. Just some simple code. What I'm curious is if someone can reiimplement this without and javascript.
Well there appear to be two things stopping this: - Hiding two elements on the page (one can be hidden with the CSS :visited selector) - Remaining with your position on the page whilst also sending a message to the server and without opening new windows. So the only way to do the task is to send a full request to the server which would return you to the page with the buttons correctly disabled. Extra load on the serv…
2. Could you set a background image on a visited to a 1x1 gif of the tracking url? Not sure if CSS lets you do that.
I know there are some limitations around :visited specifically to stop privacy snooping, but out so I can't look up the specifics right now.