Using a href can we call a function from a file using javascript or jquery..?
<p>I want to call a function from a file using href. Below is my javascript code:</p>

<pre><code> function createtable() {
   function displaytable(argument) {
     var tr=document.createElement('tr');
     for (var i=0; i &lt; argument.length; i++) {
       var td=document.createElement('td');
       if (i == 0) {
         td.appendChild(document.createTextNode(argument[i]));
       }
       if (i == 1) {
         td.appendChild(document.createTextNode(argument[i]));
       }
       if (i == 3) {
         td.appendChild(document.createTextNode(argument[i]));
       }
       if (i == 2) {
         td.ondblclick= function () {
         var column_index= (this.cellIndex) -1;
         var row_index= (this.parentNode.rowIndex);
         search_cell(row_index,column_index);
       }
       td.appendChild(document.createTextNode(argument[i]));
     }
     tr.appendChild(td);
    }
    document.getElementById('table_body').appendChild(tr);
  }
  document.write("&lt;table border=\"1\"&gt;&lt;tr&gt;&lt;th&gt;INDEX&lt;/th&gt;&lt;th&gt;--CELL NAME--&lt;/th&gt;&lt;th&gt;--PIN NAME--&lt;/th&gt;&lt;th&gt;--PG PIN--&lt;/th&gt;&lt;/tr&gt;&lt;tbody id='table_body'&gt;&lt;/tbody&gt;&lt;/table&gt;");

 for (var x=0; x &lt; array_cells.length; x++) {
  displaytable([x+1,array_cells[x].cell,array_cells[x].pins,array_cells[x].pg_pins])
 }
 function search_cell(row_index,column_index) {
</code></pre>

<p>//Want to call this function using href
    }
    }</p>

<p>I want to add a functionality i my code that when i click over a cell in my html table it calls a function from file using href.</p>
