I created a word document with a very long list of documents and I turned it into an .htm file to make an internal search engine that would display a list with only the documents with the key word typed into the "Search" button. I used the html code and the .js code from this website: [Moderator edit: link removed].
On Dreamweaver, I have an .htm file with the content of the word document converted into .htm, and also the html code for the search engine, which is as labeled search.html on the website. I also have a second file, which is a .js file with the .js content for the search engine (.js Parts 1, 2, and 3 from the website - I changed the siteURL in Part 1 to the name of the file "mydocument.htm").
However, when I open the .htm file on the Internet, the search function doesn't display any results. The page looks the same.
How can I tell the search feature to look for the items in the list, which are each enclosed in a separate <p ... </p>? Should I somehow identify each item so the search engine recognizes it, like with number of classes that would correspond to the key words? how can I tell the search feature to look for and show all the items with the given key word?
Or would anyone recommend a simpler way to create an internal search engine for a list of items that are all on one page?
Thank you for your help!