Solved

frames question

Posted on 1998-07-27
2
125 Views
Last Modified: 2010-04-09
when I click on a link in my document I want to load 1 document in 1 frame and another into another frame.  ie

<A HREF="doc1.html" target="left"><a href="doc2.html target="top_rt">go here</a>

this code loads doc2 and ignores doc 1.  So how can I load doc1 in left and doc2 in top_rt  at same time when I click "go here"????

TIA
0
Comment
Question by:csindorf
2 Comments
 
LVL 10

Accepted Solution

by:
MasseyM earned 70 total points
ID: 1844922
Use some javascript...
<SCRIPT LANGUAGE="JavaScript">
funtion LoadPages {
frame_name1.location = "page1.htm"
frame_name2.location = "page2.htm"
}
</SCRIPT>

then in the <A HREF> use <A HREF ="javascript:LoadPages">Load Two pages...</A>

This should do it for you..

- Matt
0
 

Author Comment

by:csindorf
ID: 1844923
The code below is on a doc called links.html  when I click on Links to run the javascript it just puts the code on the screen not the 2 documents in each of their own frames.

other info:
The frame doc is index.html
frame names are left, top_rt, bottom_rt
the doc to be loaded into left is master.html
the doc to be loaded into top_rt is master2.html

<script language="JavaScript1.1">
function loadPages()
{
      left.location="master.html";
      top_rt.location="master1.html";
}

</script>
<html>

<head>

<title>links</title>
</head>

<body bgcolor="white" text="black" link="blue" vlink="red">

<center><font size="6"><b>Links to go to</b></font></center><br>

<center><img src="Elegant_Double.gif" width="536" height="5"></center>

<table align="center" cellspacing="0" cellpadding="0">
<tr>
    <td></td>
</tr>
</table>

<br>
<table align="center" cellspacing="0" cellpadding="0">
<tr>
    <td><center><font size="4"><strong>Information</strong></font></center>
<A HREF="javascript:loadPages" >Links</a><br><br>
      </td>
</tr>
</table>
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

747 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

15 Experts available now in Live!

Get 1:1 Help Now