Solved

Link target to another frame using javascript

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now