title: Styling an element using inline javascript on onclick
body: <p>I am trying to style a link. I have an external stylesheet and in the HTML I am pointing to the correct location of the sheet, so that is not the problem. I would like to change the <code>text-decoration</code> when the <code>onclick</code> event is triggered. I have:</p>
  
  <pre><code>&lt;a class="dopelink"onclick="document.getElementsByTagName("link").style.textDecoration="underline" " href="mylink.htm" &gt;MY Link&lt;/a&gt;
  </code></pre>
  
  <p>What am I doing wrong?</p>