Solved

hyperlink problem.

Posted on 2002-05-17
3
159 Views
Last Modified: 2010-04-09
HI expert,

I have two frames "main" and "menu". By click on one link
on the "menu" frames, I want both "main" and "menu" be updated. How can I do that.


I tried something like:

<a href="front_page.html" target="main" href="enu.html" target="menu" > Home </a>


But not work.


Please give me your suggestion.


Thanks
0
Comment
Question by:zouwei
  • 3
3 Comments
 
LVL 33

Expert Comment

by:knightEknight
ID: 7016423
<a href="#"
  onClick='top.main.location="front_page.html";top.menu.location="enu.html";return false;'> Home </a>
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 7016428
or, if these are not top level frames ...


<a href="#"
  onClick='parent.main.location="front_page.html";parent.menu.location="enu.html";return false;'> Home </a>
0
 
LVL 33

Accepted Solution

by:
knightEknight earned 100 total points
ID: 7016429

... and if the link is in the "menu" frame, this will also work:

<a href="enu.html"
 onClick='top.main.location="front_page.html";return true;'> Home </a>
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question