javascript check if html contains css code example Example: if classlist contains js element.classList.contains(class);