title: Easy way to set font color in javascript onClick?
body: <p>Question: So let's say I have some basic code</p>
  
  <pre><code>    &lt;a name = "sec"&gt;this is a test&lt;/a&gt;
  </code></pre>
  
  <p>I want a javascript function to on click of a link to change that to</p>
  
  <p>So user clicks:
           link! </p>
  
  <p>And the JS kicks in to change the 1st html to:</p>
  
  <pre><code>    &lt;font color = "green"&gt;&lt;a name = "sec"&gt;this is a test&lt;/a&gt;&lt;/font&gt;
  </code></pre>
  
  <p>Is it possible to do this in JS? </p>