title: getting inner html of a link when clicked
body: <p>I have an HTML Link and a p tag as follows:</p>
  
  <pre><code>&lt;a href="#" onclick="myfun()"&gt;Computer Science&lt;/a&gt;
  &lt;p id="putpara"&gt;&lt;/p&gt;
  </code></pre>
  
  <p>This Is My Function :</p>
  
  <pre><code>function myfun() {
              document.getElementById("putpara").innerHTML = this.innerHTML;
  
          }
  </code></pre>
  
  <p>However when i click the link the content inside the <code>paragraph tag</code> changes to <strong>undefined</strong>.</p>
  
  <p>Seems like a silly mistake i am making.....Newbie to javascript....</p>