JavaScript - Sprawdź, czy DIV zawiera słowo? - Przepełnienie stosu

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