title: How to retrieve text content inside a table without any element id
body: <p>I have a simple code of an html table. I need to write a Javascript function that is able to alert the content of any row that is selected using the mouse(by clicking).</p>
  
  <p>I do not have any element id. So I need to use the event associated to the click of the mouse...</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;tr&gt;
    &lt;td onclick="..."&gt;Mamata&lt;/td&gt;
    &lt;td&gt;Sharma&lt;/td&gt;
    &lt;td&gt;20&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>I need to write a javascript function that is able to display with an alert any content of the table I select with a click.
  For example If I click on 'Mamata', I need to see an alert appearing on the screen displaying 'Mamata'.</p>