Answer the question
In order to leave comments, you need to log in
How to write a search term for an element on a web page?
Greetings, tell me how to write a condition, for example, if this class is found, then display alert and if not found, do nothing.
var elements = document.getElementsByClassName('testclass');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question