Question

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?

Was it helpful?

Solution

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>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top