?
Solved

Link target to another frame using javascript

Posted on 1998-12-18
3
Medium Priority
?
180 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

771 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