change class name using javascript 21 Change Class Name Using Javascript Unlike in the className example, using classList.add () will add a new class to the list of existing classes. You can also … Written By Anonymous Wednesday, November 24, 2021 Add Comment Edit