Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DHTL links between frames

Status
Not open for further replies.

vc97moor

Technical User
Nov 8, 2000
2
GB
I have a page with 3 frames. Lets ignore the one at the top for now... i have one on the left and one on the right.

On the left is a table which I have done mousover effects for in javascript:

<TR align=&quot;left&quot; valign=&quot;middle&quot; bgcolor=&quot;#6363EF&quot; onmouseover=&quot;style.backgroundColor='#0000FF'; style.cursor='hand'&quot; onMouseOut=&quot;style.backgroundColor='#6363EF';&quot; onClick=&quot;location.href='chat.html'&quot;>

ok this works fine but on clicking the cell the link changes the left frame's url to &quot;chat.html&quot;. I want the right-hand frame to change to &quot;chat.html&quot; and the menu (left-hand frame) to stay where it is.

I can do this in html but it is useless for this example : <A href=&quot;chat.html&quot; target=&quot;right-frame&quot;> [EXAMPLE] </A>

please help. is there a way to add the html into the javascript? it is afterall only dynamic-html.

Any help appreciated - i am only a begginer when it comes to javascript.
Richard
 
Hi Richard,

try this,

onClick=&quot;location.href='window.parent.right-frame.document.location.href='chat.html'&quot;

don't forget to name your right frame as &quot;right-frame&quot;

hope this helps =)

Chiu Chan
cchan@gefmus.com
 
put this in the HEAD section of your left frame:
[ignore]
<base target='right-frame'>
[/ignore]

nick bulka

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top