Site Search 1

A simple client-side search.
Apple Orange Plum Peach Pear

Select one of the above example links to enter into the textbox and press Search, the results of the search are compiled in a div and displayed.

An array is used to contain all the relevant page information

Each array index contains 4 entries

  1. Url
  2. Document Title
  3. Document description
  4. keywords

data[0]=["page1.htm","Document Title","Brief description of page contents","keyword"]
data[1]=["page2.htm","Document Title","Brief description of page contents","keyword keyword keyword"]

You can have as many keywords as you need as long as there is a space between each one

Download Search 1 zip