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
Post a Comment