Metodo Table deleteTFoot()
Definizione e uso
deleteTFoot()
Metodo per rimuovere dall'elenco Elemento <tfoot>(e il suo contenuto).
Suggerimento:Per creare un nuovo elemento <tfoot> per la tabella, utilizzare Metodo createTFoot().
Vedi anche:
Manuale HTML:Tag HTML <tfoot>
Esempio
Esempio 1
Eliminazione dell'elemento <tfoot> dal tavolo:
document.getElementById("myTable").deleteTFoot();
Esempio 2
Creazione e eliminazione dell'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(); {}
Sintassi
tableObject.deleteTFoot()
Parametro
Nessuno.
Valore di ritorno:
Nessun valore di ritorno.
Supporto dei browser
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Supporto | Supporto | Supporto | Supporto | Supporto |