How does a website highlight search terms you used in the search engine?
问题 I've seen some websites highlight the search engine keywords you used, to reach the page. (such as the keywords you typed in the Google search listing) How does it know what keywords you typed in the search engine? Does it examine the referrer HTTP header or something? Any available scripts that can do this? It might be server-side or JavaScript, I'm not sure. 回答1: This can be done either server-side or client-side. The search keywords are determined by looking at the HTTP Referer (sic)