title: How can I pass an argument to a function when I have called it in the href tag
body: <p>I am creating a apraisal web application , Please help me solve this logic/syntax issue : I want to create a table with the cell content as hyperlink , so that when the user clicks on the link it will open a new window to accept data , also it should display the content of the cell clicked on the next page.</p>
  
  <p><strong>Here is my Javascript code:</strong></p>
  
  <pre><code>row = table.insertRow(-1);
  
  var cell = row.insertCell(-1);
  
  cell.innerHTML = '&lt;a href="#" onclick = func(name);&gt;'+name+'&lt;/a&gt;';
  
  
  function func(name)
          {
  
  
              localStorage.setItem("Selectedname",name);
  
              window.location.href="form_apraise.html";
  
          }
  </code></pre>
  
  <p>Thank you </p>