Mega Code Archive

 
Categories / JavaScript Reference / Javascript Methods
 

DeleteRow() Syntax, Parameters and Note

Note: Deletes a row from the rows collection, or  from a <table>, <tbody>, <tfoot>, or <thead> element.      Syntax:      document.all.tableID.rows[index].deleteRow(param1) document.getElementById("elementID").deleteRow(param1) document.all.elementID.deleteRow(param1) // IE only Parameters:     param1   Optional; the row index in the rows collection.                         If omitted, the last row will be removed.