Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML DOM TokenList.remove() Method

Improve Article
Save Article
  • Last Updated : 12 Apr, 2022
Improve Article
Save Article

The TokenList.remove() Method in HTML DOM is used to remove the particular nodes or tokens from a NodeList. It is an in-built method of TokenList Object. 


remove(token, token);
remove(token, token, token);

Parameter Values: It contains a string value that represents the name of the token that you want to remove from the Token List. 

Return Value: This method does not return any value. 

Example: Below HTML code illustrates the use of the token list. remove() Method in HTML DOM. 


<!DOCTYPE html>
        .geek {
            background-color: green;
            font-size: 50px;
        <h2 id="gfg" class="geek">
            HTML DOM TokenList remove() Method
        <button onclick="myGeek()"> Submit </button>
        function myGeek() {
            var elem = document.getElementById("gfg");
            // removing class from div element


TokenList.remove() Method in HTML DOM

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!