deleteTHead Method

Internet Development Index

Deletes the tHead element and its contents from the table.

Syntax

object.deleteTHead()

Return Value

No return value.

Remarks

If only one tHead element exists in the source, the deleteTHead method deletes the table header. If multiple tHead elements have been defined, the next tHead element in the source order is promoted as the table header.

Example

This example uses the deleteTHead method to delete the tHead element from the table.

document.all.myTable.deleteTHead()

Standards Information

This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

TABLE, TBODY

See Also

createCaption, createTFoot, createTHead, deleteCaption, deleteTFoot