JavaScript check if web page text contains a word code example
Example: JavaScript check if web page text contains a word
if (
(
document.documentElement.textContent || document.documentElement.innerText
).indexOf('Done successfuly') > -1
) {
// Do something...
}