Solved

hyperlink problem.

Posted on 2002-05-17
3
164 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
REST endpoint query with a parameter 1 37
Need to add another Column in Powershell script output 2 33
Html split(text) 2 29
title attribute 5 24
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

749 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