JavaScript - Periksa apakah Div berisi satu kata? - Stack Overflow

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