title: Changing the href of a link tag using JavaScript
body: <p>I am trying to change the href of a link tag so that when a button is pressed a new style sheet is loaded.</p>
  <p>function addcss()
  {<br />
  var findlink = document.getElementsByTagName(&quot;link&quot;);
  findlink.href = &quot;stylesheetxhtml.css&quot;;
  }</p>