How can I highlight words on my page for which the user has googled?
-
16-09-2019 - |
Question
I noticed that certain web pages do highlight the words I googled for.
Example: Try searching for "virtualbox" and go to the VirtualBox page. Now "virtualbox" is highlighted on that page.
I want to do the same on my page. How can I know the words the user was searching for?
Solution
You check referrer and parse out the words. Most likely there will even be javascript functions for doing that.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow