Use classList Object to check if the element has an active class