Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I highlight words on my page for which the user has googled?

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?

like image 425
Daniel Rikowski Avatar asked Aug 14 '09 11:08

Daniel Rikowski


People also ask

How do you highlight specific words on a web page?

Search Highlighter is an extension that enables you to find and highlight desired keywords in any web page. Simply navigate to a web page, then, open toolbar popup UI and type your keyword in the designated area. Then click on the "Find" button or press "Enter" on your keyboard.


1 Answers

You check referrer and parse out the words. Most likely there will even be javascript functions for doing that.

like image 113
Rashack Avatar answered Sep 21 '22 17:09

Rashack