I have two frames. The links in the left frame open up in the right. I would like to know if it is possible when clicking on links in the right frame, to put focus on the corresponding link in the left frame.
Thanks in advance.

I have two frames. The links in the left frame open up in the right. I would like to know if it is possible when clicking on links in the right frame, to put focus on the corresponding link in the left frame.
Thanks in advance.

You can focus on a link using the focus() method.

eg:

var link = document.getElementById('link_id').focus();

To reference a frame use the <i>frames</i> Object via the Name or index of the frame.

eg:

top.frames['frame_name'].document.getElementById('link_id').focus();
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.