if text exists in element using javascript

Solutions on MaxInterview for if text exists in element using javascript by the best coders in the world

showing results for - "if text exists in element using javascript"
Rodrigo
24 Oct 2020
1if (
2  (
3    document.documentElement.textContent || document.documentElement.innerText
4  ).indexOf('Done successfuly') > -1
5) {
6  // Do something...
7}
8