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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

targeting a frame

Status
Not open for further replies.

claws2rip

Programmer
Dec 14, 2001
80
US
The following is the line of code i've been having trouble with:

<td>
<input type=radio name=&quot;Flavor&quot; onclick=window.location=&quot;P123.html&quot; target=&quot;smallframe&quot;>
Flavor</td>

I have a page with 2 frames (bigframe and smallframe)
on &quot;bigframe&quot; i have a radio button that when i click it i want a page to load in &quot;smallframe&quot;.

what am i doing wrong?

Sam
 
Try

<td>
<input type=radio name=&quot;Flavor&quot; onclick=parent.smallframe.location=&quot;P123.html&quot;>
Flavor</td> Hope this helps,
Jessica
[ponytails2]
 
How do I do this with a menu field targeting the big frame from the small frmae.

Thanks
 
You should be able to reference any frames at the same level, by using either parent.bigframe.location or parent.smallframe.location depending on what you want. Hope this helps,
Jessica
[ponytails2]
 
Thank you very much. the line of code u gave me worked great.

i also found javascript code that also works:

top.frames(smallframe).location=&quot;P123.htm&quot;

Sam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top