JavaScript deleteTHead() Method Tutorial

In this section, we will learn that the deleteTHead() method is and how to use it in JavaScript.

What is deleteTHead() Method in JavaScript?

The JavaScript deleteTHead() method is used to remove the <thead> element from a table.

Note: you can use the createTHead() method to create a <thead> element for a table.

deleteTHead() Method Syntax:

tableElement.deleteTHead();

deleteTHead() Method Parameter

The method does not accept an argument.

deleteTHead() Method Return Value

The method does not return a value.

Example: using deleteTHead() Method in JavaScript

See the Pen using deleteTHead() Method in JavaScript by Omid Dehghan (@odchan1) on CodePen.

Facebook
Twitter
Pinterest
LinkedIn

Top Technologies