function s(str) { var elems = document.getElementsByTagName('font'), i = elems.length; while (i-- && elems[i].innerHTML != str); alert(i < 0 ? 'Can not find' : 'Yes, it is'); }