title: window.event.srcElement doesn't work for firefox?
body: <p>The following doesn't work for firefox. I'm trying delete the table row on click. Can anyone please help. Many thanks.</p>
  
  <pre><code>&lt;INPUT TYPE="Button" onClick="delRow()" VALUE="Remove"&gt;
  
  function delRow(){
     if(window.event){
        var current = window.event.srcElement;
     }else{
        var current = window.event.target;
     }
     //here we will delete the line
     while ( (current = current.parentElement) &amp;&amp; current.tagName !="TR");
          current.parentElement.removeChild(current);
  }
  </code></pre>