Hellihello
test in etwa so:
<div id="ziel">inhaltirgendwas</div>
<button onclick="compareInhalt()">
javascript
compareInhalt=function() {
divInhaltsText = document.getElementById(zielId).innerHTML;
und dann weiterfummeln.
Schauen, ob du die Bedinung "divInhaltsText!='blablabla'" überhaupt erfüllt bekommst.
Dank und Gruß,