Hello. I was wondering how to find a string in a webpage.

say i opened a website and i want to check if it contains a string e.g. "glasgow rangers" and if it contained that then my computer will beep.