delete

UK[dɪˈli:t] US[diˈlit]

vt.& vi.Delete

Third person singular: deletes now Participle: deleting Past tense: deleted Past participle: deleted

head

英[hed] 美[hɛd]

n.Head; mind ; upper end; head, chief

vt. with the head; to move forward; as the leader of; to stand in front of Toward

adj. Head; in front; primary; at the top

Third person singular: heads Plural: heads Present participle: heading Past tense: headed Past participle: headed

javascript deleteTHead() method syntax

Function:Used to delete the <thead> element from the table.

Syntax: tableObject.deleteTHead()

Description: If the table has a <thead> element, delete it from The document tree is deleted, otherwise nothing is done.

javascript deleteTHead() method example

<html>
<head>
<script type="text/javascript">
function delRow()
  {
  document.getElementById('myTable').deleteTHead()
  }
</script>
</head>
<body>

<table id="myTable" border="1">
<thead><td>my table head</td></thead>
<tr>
<td>Row1 cell1</td>
<td>Row1 cell2</td>
</tr>
<tr>
<td>Row2 cell1</td>
<td>Row2 cell2</td>
</tr>
</table>
<br />
<input type="button" onclick="delRow()"
value="Delete table foot">

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance