Searching a page

Discussion in 'Code Snippets and Tutorials' started by peter516, Apr 1, 2007.

  1. peter516

    peter516 Level II

    Joined:
    Dec 23, 2006
    Messages:
    158
    Likes Received:
    0
    I have a simple web browser that refreshes. I want to make a msg box appear when the words "something has happened" are on the page.
    Do you know a way to do this?
     
  2. Anonymous

    Anonymous Guest

    it's a webrowser? use a wrapper. Webbrowser's are rank. but here's the code anyway:

    Code (Text):
    1. if instr(webbrowser1.Document.Body.InnerHTML,"String im looking for") > 0 then
    2. Msgbox("String Was Found")
    3. end if