I don't know Javascript very well, but I'll bet a script similar to what I'm looking for already exists and I can modify it slightly to meet my needs. I just can't figure out what to search for. I'd like to create a web form that takes a block of text and, when the user clicks Submit, creates a popup window with the text reproduced but certain words and phrases highlighted (from a phrase list in the JavaScript). Do you know of any similar script I could work from, or can you give me any ideas? Many thanks!
If you search on "javascript createTexRange " you will probably find examples. this link might help http://msconline.maconstate.edu/Tutorials/JSDHTML/JSDHTML12/jsdhtml12-03.htm