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

Managing frames

Status
Not open for further replies.

vilrbn

Programmer
Oct 29, 2002
105
FR
Hello,

I am using an HTML page as main frame.
When I click on an <a> HTML element, I am replacing this main page using href and target properties.
I also need to replace my navigator frame and don't know how to do this with my <A> HTML element.

 
What I have done to accomplish this is to call a javascript function from the link. Within the function send the navagator page to one link and the main page to the other.

Just make sure to send the page that the script is on elsewhere last or the other lines of script won't run. That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Yep !
I used javascript and it's working vey fine:

<script type=&quot;text/javascript&quot;>
function ChangeNav()
{
parent.frMain.location.href = &quot;Form1.htm&quot;
parent.frNav.location.href=&quot;Nav2.htm&quot;
}
</script>

Thanks.
 
np That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top