I have to write some clicky GUI code - I'm not very good at this stuff (I'm a back end guy!), and I'm not sure how to accomplish this.

Given a page with a frameset, I need to display a local page on top, and a client's page on the bottom. A lot like Google Images, but it will be mostly or all text.

When someone clicks or double clicks or selects or any type of interaction that can be coded - when somebody "points to" a word or phrase in the top frame, I need to figure out how to auto find that on the bottom page.

Is that possible? How would I figure out how to do it?