There is a list of links, I need to track which of them have already been clicked, and which have not been clicked yet.
For example: There are no links that have been clicked, I should start with the first one. The first and second links have been placed, you should start with the third.
How can this be implemented?
Was looking to find a solution using querySelector and a:visited, but the browser won't let me access that information.
Here is a localStorage version.
On your server, remove
['https://www.youtube.com/']; //including the comment slashesAlso remove the
e.preventDefault()I put to check the link gets highlighted