Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
add
Expand Minimize

createTHead method

Creates an empty tHead element in the table.

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

 

Syntax

var retval = table.createTHead();

Parameters

This method has no parameters.

Return value

Type: Object

Returns the tHead element object if successful, or null otherwise.

Standards information

Remarks

If a tHead already exists, createTHead returns the existing element. Otherwise, it returns a pointer to the element created.

Examples

This example uses the createTHead method to create a table header.


myTHead = document.all.myTable.createTHead() 

See also

table
Reference
createCaption
createTFoot
deleteCaption
deleteTFoot
deleteTHead

 

 

Show:
© 2015 Microsoft