Solved

Frame links to other URL

Posted on 2000-04-18
9
210 Views
Last Modified: 2010-04-09
I have a 2 frame sets page. On the left hand side is my menu and the right hand side I want to display my friend's page, which is not the same domain and address. How do I do that??
0
Comment
Question by:ppmb
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 1

Accepted Solution

by:
ManoloMA earned 50 total points
ID: 2729571
Try this:

Left frame:

<A HREF="http://yourfriendpage" TARGET="rightframename">Visit the page of my frame</A>



0
 
LVL 1

Expert Comment

by:ManoloMA
ID: 2729579
If you want to do it with a function:

<SCRIPT >
fucntion go(){
  top.frames['rightframename'].location = "http://yourfriendpage"
}
</SCRIPT>

<TABLE>
 <TR><TD onclick="go()">Visit the page of my friend</TD></TR>
</TABLE>

It is not necesary to put the 'onclick' in a td TAG.
0
 
LVL 3

Expert Comment

by:messentary
ID: 2730178
Keep in mind that you need to name your frames in the frames page html.

I.E..
<html>
<head>.....
<frameset framespacing="0" border="0" frameborder="0" cols="158,*">
    <frame name="menu" src="nav.htm" scrolling="auto" target="Main">
    <frame name="Main" src="main.htm" scrolling="auto">
  </frameset>

Also notice the added security of targetting the Main frame in this html as well.
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

Expert Comment

by:nfcdrummer
ID: 2733266
basically the source would be like this:

index.html:

<frameset rows="15%,*">
<frame src="index2.html" name="window1">
<frame src="menu.html" name="menu">


index2.html...

<whatever you want in here>


menu.html

<a href="http://friend.com" target="window1">my friend's page</a>
0
 
LVL 3

Expert Comment

by:messentary
ID: 2733905
ncr, did you generate that code you posted?  First of all, that is exactly what Manolo and I suggested, (are you hard up for points?), and second of all, your code puts his his friends page, or all his site pages, in a window that is only 15% of the screen, (and a row?).  

Think first, and look at previous comments.  This cheap shot of point grabbing is a joke.
0
 

Author Comment

by:ppmb
ID: 2734114
I will try all the code and take the best code.
0
 

Expert Comment

by:nfcdrummer
ID: 2736353
oops I did that size the wrong way around sorry!!
0
 

Expert Comment

by:nfcdrummer
ID: 2736355
oops I did that size the wrong way around sorry!!

and yes I am hard of points because I'm STUPID!!!

0
 

Author Comment

by:ppmb
ID: 2746882
TO nfcdrummer :
Your answer worked but I can't take your answer since the comment suggested by ManoloMA also worked. I have to give credit to ManoloMA since ManoloMA provided the comment earlier than you did. Sorry, nfcdrummer.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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 add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

831 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