Gli ultimi tutorial di sviluppo web
 

tavolo deleteTHead() Method

<Tabella Object

Esempio

Rimuovere un <thead> elemento da una tabella:

document.getElementById("myTable").deleteTHead();
Prova tu stesso "

Definizione e l'utilizzo

Il deleteTHead() metodo rimuove il <thead> elemento (and its content) dal tavolo.

Tip: Per creare un nuovo <thead> elemento per un tavolo, usare il createTHead() metodo.


Supporto browser

Metodo
deleteTHead()

Sintassi

tableObject .deleteTHead()

parametri

Nessuna

Dettagli tecnici

Valore di ritorno: Nessun valore di ritorno

Altri esempi

Esempio

Creare ed eliminare un <thead> elemento:

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

function myDeleteFunction() {
    document.getElementById("myTable").deleteTHead();
}
Prova tu stesso "

Pagine correlate

Di riferimento HTML: HTML <thead> tag


<Tabella Object