tags:

views:

19

answers:

1

I am using following code to split my screen into two panes.

<frameset cols="20%,80%">
 <frame name="lefty" src="menusidebar.html">
 </frameset>
</frameset>

The file "menusidebar.html" contains links. I want to open the links on the right pane when the user clicks on the link in the left-pane. How to do this?

+3  A: 

In your example you're missing the other (right) frame, let's call it righty. To direct links from one frame to another you should use the target attribute of the anchor tag. See the specification. But basically something like:

<a href="..." target="righty">click</a>
Zoran Regvart