title: How to add double click event on a table row using javascript?
body: <pre><code>var nextRow = tbl.tBodies[0].rows.length;
  var row = tbl.tBodies[0].insertRow(nextRow);
  row.setAttribute('ondblclick', "return move_to_x_graph();");
  </code></pre>
  
  <p>This code will add a double click  event on a row.
  But the thing is it's not working in case of  Internet Explorer.It's working fine in case of  all the other browsers.</p>
  
  <p>For adding style I am handling this:</p>
  
  <pre><code>var cell2 = row.insertCell(1);
  var browser = navigator.appName;
  if (browser == "Microsoft Internet Explorer") {
      cell2.style.setAttribute("cssText", "color:black; width:300px;");
  } else {
      cell2.setAttribute("style", "color:black; width:300px;");
  }
  </code></pre>
  
  <p>Can anybody help me to add double click event using  Javascript that will also work in Internet Explorer?</p>