deleteTHead method

Deletes the tHead element and its contents from the table.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5

 

Syntax

object.deleteTHead()

Parameters

This method has no parameters.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

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.

Examples

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


document.all.myTable.deleteTHead()

See also

table
tBody
Reference
createCaption
createTFoot
createTHead
deleteCaption
deleteTFoot

 

 

Show:
© 2014 Microsoft