1 Reply Latest reply on Jul 30, 2011 3:22 PM by John Hawkinson

    Search 2 thinks in same time

    jeanmed Level 1



      I need to creat a search function (javascript) for find in a same document the page where i find 2 values :


           Exemple :

                the word "hello" and the word "cool", if there is just cool or hello it should not works.



      Thanks for you help

        • 1. Re: Search 2 thinks in same time
          John Hawkinson Level 5

          Please tell us a bit about your background with scripting.


          This is very easy to do so, but the way you ask the question suggests you don't have the basic familiarity, in which case it may be very very hard for you.

          Just search for one word, and then if and only if you find it, search for the next word. If you find the second word, then they were both there. If not, they were not.