This topic has not yet been rated - Rate this topic

deleteTHead method

[This documentation is preliminary and is subject to change.]

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()

Standards information

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.

Type: HRESULT

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

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

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ