Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Link target to another frame using javascript

Posted on 1998-12-18
3
Medium Priority
?
183 Views
Last Modified: 2010-04-09
I have a page with 2 frames. Using javascript in the left page, I want to open the page in the right page.
How can I do that?
Thanks in advanced.
0
Comment
Question by:Nuno Alves
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
Christian_Wenz earned 200 total points
ID: 1840773
parent.frames[1].location.href="page.html"

however: why don't you want to use HTML instead, if you only want to change the content of one frame?
0
 
LVL 4

Expert Comment

by:seguret
ID: 1840774
First, you have to name your frame in the frameset :
 <frameset cols="*,*">
   <frame src="left.html">
   <frame src="left.html" name=Right>
 </frameset>

After that, you can use in your javaScript function the instruction :
 top.Right.document.location.href="newRight.html";

this works under IE and Netscape.
Tell me if you need some other precisions.

(this is a comment because of a server problem...)
0
 
LVL 4

Expert Comment

by:seguret
ID: 1840775
Ok, I understand the server problem, someone answered at the same time (and correctly :-)

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

610 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