On 3/27/06, Jeremy Dunck <jdunck at gmail.com> wrote: > if (/(\W|^)word(\W|$)/.exec(document.body.innerHTML)) { Also useful is document.body.textContent. Choose that or innerHTML, depending on your needs.