Solved

hyperlink problem.

Posted on 2002-05-17
3
134 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
Comment Utility
<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
Comment Utility
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
Comment Utility

... 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now