THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Table deleteTFoot() Method

Table Object Reference Table Object

Example

Remove a <tfoot> element from a table:

document.getElementById("myTable").deleteTFoot();
Try it Yourself »

Definition and Usage

The deleteTFoot() method removes the <tfoot> element (and its content) from the table.

Tip: To create a new <tfoot> element for a table, use the createTFoot() method.


Browser Support

Method
deleteTFoot() Yes Yes Yes Yes Yes

Syntax

tableObject.deleteTFoot()

Parameters

None

Technical Details

Return Value: No return value

More Examples

Example

Create and delete a <tfoot> element:

function myCreateFunction() {
    var table = document.getElementById("myTable");
    var footer = table.createTFoot();
    var row = footer.insertRow(0);
    var cell = row.insertCell(0);
    cell.innerHTML = "<b>This is a table footer</b>";
}

function myDeleteFunction() {
    document.getElementById("myTable").deleteTFoot();
}
Try it Yourself »

Related Pages

HTML reference: HTML <tfoot> tag


Table Object Reference Table Object