Solved

Link target to another frame using javascript

Posted on 1998-12-18
3
179 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 50 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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses four methods for overlaying images in a container on a web page
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…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

695 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