Solved

Link target to another frame using javascript

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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 position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

737 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