Hi,

I have 2 frames. In left panel i have a hyper link.

Whenever i click on hyper link (on the left panel) of the page should open in right panel of the frame.

Here is the frame code.

<html>
<FRAMESET cols="200,*">
<frame name="left" src="page.html">
<frame name="right" src="#">
</FRAMESET>
</html>

I tried like this but its not displaying the page in right panel of page.

Here is the code.

<html>
<head>
function fncSelected(form)
{
alert("entered  location");
parent.right.location.href=(form.form1.product.value);
}
</script>
</head>
<a href='http://www.google.com' name='product' onClick='fncSelected(this.form)'> strproduct</a>
</html>

what should i change in order to get the display in right panel???

when user clicks on hyperlink on left panel of the frame the page should open in right panel!!

How can i do that???

Any suggestions???

Regards
Vanditha

Assuming that this is the your leftFrame. Then simply add target="rightFrameId" attribute with your links'.
Left Frame.html

<html>
<head>
<title>Left Frame</title>
</head>
<body>
<a target="right" href="http://www.google.com/" id="product">strproduct</a>
</body>
</html>

Javascript is not necessary on this issue.

Hope it helps you...

Assuming that this is the your leftFrame. Then simply add target="rightFrameId" attribute with your links'.
Left Frame.html

<html>
<head>
<title>Left Frame</title>
</head>
<body>
<a target="right" href="http://www.google.com/" id="product">strproduct</a>
</body>
</html>

Javascript is not necessary on this issue.

Hope it helps you...

Hi,

Thanks a lot!!

I t really helped me!

Regards
Vandhita

This article has been dead for over six months. Start a new discussion instead.