title: Javascript to get the id of the hyperlink clicked
body: <p>I would like to know how i can set the current hyperlink id to a hidden field on clicking the corresponding links. The html control code is as follows: </p>
  
  <pre><code>&lt;a href="#TB_inline?height=155&amp;width=300&amp;inlineId=hiddenModalContent" class="thickbox" id="ExpressionsLink"
            title="Create expression column" onclick="keepID()"&gt;Add Expressions Model&lt;/a&gt; 
             &lt;a href="#TB_inline?height=155&amp;width=300&amp;inlineId=hiddenModalContent" class="thickbox" id="AggregateMethodLink"
            title="Create aggregate column"&gt;Add Aggregate Methods&lt;/a&gt;&lt;input id="HiddenIdHolder" 
            type="hidden" /&gt;
  </code></pre>
  
  <p>I need the id of the link clicked on the hidden field 'HiddenIdHolder'. </p>
  
  <p>Javascript</p>
  
  <pre><code> function keepID() {
       var hiddenInput = document.getElementById("HiddenIdHolder");
       hiddeninput.value= ? // What can i do here to get the id?
   }
  </code></pre>