On page load, how would i check the entire body for a string and if that string was found, use alert() to notify the user?
thanks guys
I'd look at the example using getElementsByTagName. (Your tag may just be body.) Then just check for child nodes that have a innerHTML property and search that. You'll need some kind of global boolean variable that gets set to true in your search loops when a match is found. Then just check that boolean variable for deciding whether to alert the user.
its not a tag its just a bit of text
It's not a bit of text within a tag? Not even body????
If the entire body is to be searched then the top-level element's textContent property would be the string to search, right?