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 -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -