javascript - Search feature in an HTML page -


here requirement:

i have html files in server, , master html file containing search textbox , submit button. user entering keyword in textbox, if word exists, must show word highlighted , url present. else display word not found.

thanks in advance...

ordinarily, you'd need on server-side, can done on client.

use scripting pull in of html files , index them keywords, allow user search in-memory index , redirect browser appropriate.

the downside client-side initialization , index-building going take @ least few seconds.

otherwise, you'd implement search on server-side, have php, asp.net, jsp etc enabled?

or, why not let google searching site: term?


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -