JavaScript - Vérifiez si Div contient un mot? - Stack Overflow

if (document.getElementById('divId').innerHTML.indexOf("word") != -1) { }
Borma