Tabla deleteTFoot() Método
Ejemplo
Eliminar un elemento <tfoot> de una tabla:
document.getElementById("myTable").deleteTFoot();
Definición y uso
El método deleteTFoot() elimina el elemento <tfoot> (y su contenido) de la tabla.
Sugerencia: para crear un nuevo elemento <tfoot> para una tabla, utilice el método createTFoot() .
Compatibilidad con navegador
Method | |||||
---|---|---|---|---|---|
deleteTFoot() | Yes | Yes | Yes | Yes | Yes |
Sintaxis
tableObject.deleteTFoot()
Parámetros
Ninguna |
Detalles técnicos
Valor devuelto: | Sin valor de retorno |
---|
Más ejemplos
Ejemplo
Crear y eliminar un elemento <tfoot>:
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();
}
páginas relacionadas
Referencia HTML: etiqueta HTML <tfoot>
❮ Objeto de tabla