Html code to make a search on my site. Please no PHP only html, JavaScript, and xhtml?

  • Thread starter Thread starter Mr_Asker
  • Start date Start date
M

Mr_Asker

Guest
I need to put alot of information on my site and I want each person to have an account on my site that has only one log in place but each person sees only there part of the information. I need to put a search that only searches the CURRENT page and not the whole website. So that means I need a code for search that Highlights all matches NOT show them on a separate page.
No, I need one that only searches my site because I have information for each person and I blocked those pages from Google and all search engines. So I need one that only searches current page using only html, Javascript, and/or xhtml. If you could try to make it without Javascript but if it is not possible without javascript than I will use it with Javascript. But also remember that I do not want the search by another search engine. I want one that ONLY SEARCHES THE PAGE THAT THE SEARCH IS ON AND WILL NOT SEARCH ANY OTHER PAGES please!!
Sorry, I need the whole code because i do NOT ubderstand what you said "You will need to keep track of all the words you have on a page somewhere beside the script itself. (Keep in mind there cannot be, is not, and will never be a way to do this with (X)HTML.)

Then, with JavaScript, make a loop that will run through all the words... catch specific tokens, and format those tokens to have a highlighting style of your choice." and since I am a beginner I have no clue what a loop is and how to make it. So just to wrap this up I need the whole code and if you could the steps with the code (not just the steps I need the code and if possible the steps too) in either Html, xhtml, or/and Javascript. Thank you.
Sorry one more thing:
How do I choose a best answer cause I think I found one!
 
Back
Top