Javascript Help.... I know... not really related to customizing, but....

I was wondering if anyone knew of a way to have a javascript function open a *.htm file in a new window (I can do that much), and at the same time hightlight a certain section of text in that file.

Still with the highlighting, suppose I had three links on a page, each to a different anchor in a small *.htm file. I already have the file open in a new popup window, but I want to highlight the 1st section when you click the 1st link, the 2nd section when you click the 2nd link, and (suprise suprise) the 3rd section to hightlight when you click the 3rd link.

I'd really appreciate any help anyone could give me on this, mainly b/c I really don't know JavaScript very well and I'm working on a project at work that I'd like to get wrapped up as soon as I can.

Thanks in advance for any help.
2,550 views 2 replies
Reply #1 Top
I have some free source code links bookmarked. Looking at their examples is mostly how I learned JavaScript.

http://www.javascriptsource.com
http://www.javascript.com
http://scriptsearch.internet.com/JavaScript/
http://webdeveloper.earthweb.com/pagedev/webjs
Reply #2 Top
holy crap that was fast.... and efficient too, thanks emilyh!

I think I found something similar to what I need already, I'm going to try it out, but it looks like it might work (althought all it's examples were links and I want to highlight just test....)

I'd still like more advice if anyone has any just to make sure I can still get this to work if the method I foun doesn't.