And So I know this should be really quite simple and fundamental, however i cant decipher it...

I've primary html document with 3 frames. Table of content around the left, Primary content on top and small frame with references at the base.

Goal is when I click some certain [1,2,3..] link in primary content, it changes cursor position in reference frame...

How to get this done? Thanks!