Hi another, that’s a perfectly valid question 🙂
Besides highlighting search terms used in the search form on your site, the script also tries to determine search terms that where used by a visitors that lands on your site for the first time, via a search engine.
So they went to a search engine, typed a search term (or more) and found your site in the results. Following that link, they land on your page where the script then runs. When it finds the referring address is a search engine, it will try to find the search term that was used. It then highlights the(se) term(s), if they are present on the page.
Now you know what these search engines are doing inside the script 🙂
Please note: the script is not always able to find terms. Google has switched to HTTPS when a user is logged in to his/her Google account. This prevents the script from accessing the search data after the user lands on your site. In that case, search terms are not highlighted.
Thank you for the fast respond.
It gives a little more inside and explains why they are there.