title: How do I change the css of a link when visited, unvisited or hovered using javascript?
body: <p>So in my html code I have a line of code that looks like what is shown in the bottom:</p>
  <pre><code>    &lt;a href = &quot;https://www.youtube.com/watch?v=dQw4w9WgXcQ&quot;&gt;Find out more&lt;/a&gt;
  </code></pre>
  <p>and I want to use java script to change the color of this link when visited, not visited or hovered.
  In other word, what I am looking for is a way to do what is shown below but with java script.</p>
  <pre><code>    a.visited {css property}; a.link {css property}; a.hover {css property}
  </code></pre>
  <p>Does anyone know how? Any help would be appreciated.</p>